This is an old revision of the document!
Just about all routers have different hardware configurations so this how-to is to help end users find and test router push buttons.
You will need: PuTTY.exe (or your favourite SSH client) WinSCP
log into your router with both of these programs, defaults are: hostname: 192.168.1.1 port: 22 username: root password: yourpassword
In WinSCP make sure you set File Protocol to SCP, and also tell it to remember your password for the session or you will be typing it over and over.
Open gargoyle_button_handler file to see button functions
/etc/rc.button/gargoyle_button_handler
add the following line
logger the button was $BUTTON and the action was $ACTION
as shown below
[ "$ACTION" = "$action" -a "$BUTTON" = "$button" -a -n "$handler" ] && { [ -z "$min" -o -z "$max" ] && eval $handler [ -n "$min" -a -n "$max" ] && { [ $min -le $SEEN -a $max -ge $SEEN ] && eval $handler } } logger the button was $BUTTON and the action was $ACTION }
i.e. make sure it goes between the 2nd last and last braces. Save and close
Go and press the button on your router that you wish to have as your wifi toggle button. in PuTTY, type
logread