OK - The WZR-HP-G300NH actually has 3 buttons on it!
Reset Button - Bottom of unit -
Jan 3 15:30:45 Gargoyle user.notice root: pressed
Jan 3 15:30:45 Gargoyle user.notice root: BTN_0
Jan 3 15:30:46 Gargoyle user.notice root: released
Jan 3 15:30:46 Gargoyle user.notice root: BTN_0
----------------------------------------------
AOSS Button - Front Panel Top of unit -
Jan 3 15:29:47 Gargoyle user.notice root: pressed
Jan 3 15:29:47 Gargoyle user.notice root: BTN_1
Jan 3 15:29:48 Gargoyle user.notice root: released
Jan 3 15:29:48 Gargoyle user.notice root: BTN_1
-------------------------------------------------
USB Eject Button - Back Panel Top of unit (USB Eject!)
Jan 3 15:30:18 Gargoyle user.notice root: pressed
Jan 3 15:30:18 Gargoyle user.notice root: BTN_2
Jan 3 15:30:18 Gargoyle user.notice root: released
Jan 3 15:30:18 Gargoyle user.notice root: BTN_2
-----------------------------------------------------
So Definitely could setup the Reset pretty easily.
I wonder, if there could be a menu option somewhere,
to assign functionality to each of the buttons?
Like AOSS - turn wireless on/off or maybe USB Eject = Reboot
Just throwing out some ideas
----------------------------------------------------
Code: Select all
config 'button'
option button BTN_2
option action released
option handler 'reboot'
option min 5
option max 10
OK - I tried the above code in etc/config/system
Worked! I held in the USB Eject (BTN_2) for 7 seconds,
and the router rebooted - sweet!