User Tools

Site Tools


This is an old revision of the document!

Router Button Functions

Just about all routers have different hardware configurations so this how-to is to help end users find and test router push buttons.

Make Router Connection

You will need: PuTTY.exe (or your favourite SSH client) WinSCP

log into your router with both of these programs, defaults are: hostname: 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.

Find Button Name

Open gargoyle_button_handler file to see button functions


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

Test For Button Name

Go and press the button on your router that you wish to have as your wifi toggle button. in PuTTY, type

push_buttons_-_find_and_change_function.1556781469.txt.gz · Last modified: 2019/05/02 07:17 by ispyisail