On
the WRT54G, GL, and GS models there are both a Reset and a Secure Easy
Setup (SES) button. The SES button is behind the Cisco/Linksys logo on
the left front panel while the reset button is recessed into the back
side between the WAN jack and the nearest antenna. Actually, WRT54G
versions 1.0 up to version 2.2 are excluded because they do not have the
SES button.
What we're doing is having shell scripts executed whenever a given event occurs, such as pressing the SES or Reset buttons.
To do this we first remove or comment out the following lines from the file "/etc/hotplug2-init.rules":
SUBSYSTEM ~~ button { exec kill -USR1 1 ; }
These lines are not needed and may interfere with our scripts.
Next, create the directory "/etc/hotplug.d/button". This is where our button scripts will go.