Posted: Sun Jul 03, 2016 7:56 Post subject: Wifi and SES buttons on Netgear R7000
Hi
I have looked around and cannot find the answer to my question, so here goes.
I have configured openvpn via the command line for one ssid and one ethernet connection on the router so that just some traffic goes via the VPN.
I also configured the left two lights on the router to show if the VPN is up or down and if there is traffic going across it (thanks to others in the forums for the scripts that I modified!).
What I'd like to do now is use the two buttons (wifi and ses on the right hand side, shown as two lights too) to enable and disable the VPN.
I tried configuring the GUI as below
SES / AOSS / EZ-SETUP / WPS Button
Turning off radio (DISABLED)
Reset Button - ENABLED
and then put a script in /tmp/etc/config/on.sesbutton but it doesnt execute the script.
I polled the gpio settings and it looks like 4 is the left button and 5 is the right button.
Any ideas if these are configured differently in the firmware or if I am doing something wrong?
I'm running DD-WRT v3.0-r29440 std (04/11/16) at the moment
Posted: Sun Jul 03, 2016 20:59 Post subject: Re: Wifi and SES buttons on Netgear R7000
dickuk wrote:
Hi
I have looked around and cannot find the answer to my question, so here goes.
I have configured openvpn via the command line for one ssid and one ethernet connection on the router so that just some traffic goes via the VPN.
I also configured the left two lights on the router to show if the VPN is up or down and if there is traffic going across it (thanks to others in the forums for the scripts that I modified!).
What I'd like to do now is use the two buttons (wifi and ses on the right hand side, shown as two lights too) to enable and disable the VPN.
I tried configuring the GUI as below
SES / AOSS / EZ-SETUP / WPS Button
Turning off radio (DISABLED)
Reset Button - ENABLED
and then put a script in /tmp/etc/config/on.sesbutton but it doesnt execute the script.
I polled the gpio settings and it looks like 4 is the left button and 5 is the right button.
Any ideas if these are configured differently in the firmware or if I am doing something wrong?
I'm running DD-WRT v3.0-r29440 std (04/11/16) at the moment
Thanks
Richard
The wifi button does not handle any scripts, only the sesbutton. Thus you would have to check the state and toggle on off in your sesbutton script.
sesbutton script is working as it it also used for drive umounting.
The script needs to be executable and must start with shebang:
Posted: Sun Jul 03, 2016 21:18 Post subject: Re: Wifi and SES buttons on Netgear R7000
<Kong> wrote:
dickuk wrote:
Hi
I have looked around and cannot find the answer to my question, so here goes.
I have configured openvpn via the command line for one ssid and one ethernet connection on the router so that just some traffic goes via the VPN.
I also configured the left two lights on the router to show if the VPN is up or down and if there is traffic going across it (thanks to others in the forums for the scripts that I modified!).
What I'd like to do now is use the two buttons (wifi and ses on the right hand side, shown as two lights too) to enable and disable the VPN.
I tried configuring the GUI as below
SES / AOSS / EZ-SETUP / WPS Button
Turning off radio (DISABLED)
Reset Button - ENABLED
and then put a script in /tmp/etc/config/on.sesbutton but it doesnt execute the script.
I polled the gpio settings and it looks like 4 is the left button and 5 is the right button.
Any ideas if these are configured differently in the firmware or if I am doing something wrong?
I'm running DD-WRT v3.0-r29440 std (04/11/16) at the moment
Thanks
Richard
The wifi button does not handle any scripts, only the sesbutton. Thus you would have to check the state and toggle on off in your sesbutton script.
sesbutton script is working as it it also used for drive umounting.
The script needs to be executable and must start with shebang:
#!/bin/sh
Thanks for the info
I created a file as below but nothing happens when I press the button (I expect the 2nd LED to go off) :
Thanks, can I save settings and use when going from the beta build to kong build? I have lots of settings and dont want to have to re-input them all.
Also, do I have to run the kong build to use the sesbutton?
<UPDATE> - I have flashed the latest kong build now but the ses button still doesnt seem to run the script.
Do I have the script in the correct folder? Its in /tmp/etc/config and it has execute bit set. I have tried different filenames all ending in .sesbutton but no luck.
If I do a nvram show | grep ses, I get :
ses_script=
ses_event=2
ses_button=0
ses_enable=1
What does the ses_button parameter do? Should this be set to 4 which is the gpio for the ses button?
Have you checked/unchecked 'SERVICE/USB' Use SES Button to remove drives?
I would look if this script is working and where it is and how it's named.
I tried enabling core usb support, USB storage support, auto drive mount 'use ses button to remove drives', and the usb stick is recognised when I insert it and automounted, but the ses button doesnt unmount it.