There is a package called 'wifitoggle' that does the same thing as the scripts below.
The scripts below allow the use of the SES button to enable or disable the wireless, this is achieved by adding a hotplug handler which reacts on button press events and a toggle script which enables or disabled the wireless depending on the current state.
Note: If you are using wireless encryption, nas and radius daemons will not be turned off during toggle and will continue to occupy cpu/memory. They should not consume too many resources with no client load though.
Create a file called
/sbin and paste the content below into it:
Then make it executable with the
chmod +x /sbin/woggle command.
To get hotplugging working, create a directory in
button and then create a file in
Paste the following content into that file:
Now, every time you want to turn the wireless on or off, you can press the button on the router, or you can issue a
woggle command from the OpenWrt shell.
doc/howto/wifitoggle.txt · Last modified: 2010/09/14 22:32 by realopty