Note
1. Open the bonnet.
2. Disconnect the negative battery cable.
3. Remove the radiator grille.
4. Disconnect the bonnet switch connector.
5. Check the continuity between the bonnet switch terminals A and B using an ohmmeter.

6. Lock the bonnet lock using a flat-head screwdriver or equivalent as shown.

7. Check the no continuity between the bonnet switch terminals A and B using an ohmmeter.
Caution
Theft-deterrent control module removal/installationMazda 6 Service Manual: Illuminated Entry System
When the illuminated entry system operates, the overhead lights, the courtesy
lights, and an ambient light* turn on in the following conditions:
The driver's door is unlocked after the ignition is switched OFF.
The ignition is switched OFF with all doors closed.
NOTE
(Overhead lights) ...
Mazda 6 Service Manual: System Operation
Make sure that the Lane-keep Assist System (LAS) & Lane Departure Warning System
(LDWS) OFF indicator light in the instrument cluster is turned off. When the Lane-keep
Assist System (LAS) & Lane Departure Warning System (LDWS) OFF indicator light is
turned on, press the switch and make ...