simonzack DD-WRT Novice
Joined: 30 Mar 2013 Posts: 4
|
Posted: Sat Mar 30, 2013 7:21 Post subject: helper scripts to shutdown/reboot/mount optware |
|
Here's a set of scripts to properly shutdown, reboot, and mount optware, and the ability to do these by pressing the wps button, with indicators of progress.
The default usb automount is buggy and sometimes doesn't work, it mounts both /opt and /mnt to /opt
These should work with any router, by default the asus N16 is supported, other routers require a small amount of configuration.
Upon pressing the wps button (red button) on the asus n16, the router shuts down optware if the button is pressed once, reboots it if pressed twice, and cancels if pressed 3 times. On success the power light will turn off for router shutdowns, and stay on otherwise.
The wps button script is designed to be customized, so you can run other commands based on how many times the button is pressed.
See https://github.com/simonzack/dd-wrt-optware for details
Tested on basmaf optware take 2, DD-WRT v24-sp2 (09/22/12) mega (SVN revision 20006) |
|