Joined: 11 May 2013
|Posted: Sun May 19, 2013 1:53 Post subject: Command Line for WIFI switch button (
|Hi all, I have setup cron for auto scheduling the on/off of the wifi, it looks like
00 01 * * * root /sbin/ifconfig ath0 off
00 07 * * * root /sbin/ifconfig ath0 up
however, when I want to act outside the schedule (for example i want to stay online very late), i have a problem to turn it on (since I don't have a computer plug in with wire)
so i want to rely on the AOSS (or WDS on yours maby) button to turn it on, but it simply doesn't work
it seems the AOSS button is not operate by "ifconfig ath0 up/down" string, can I know what's the command line for the AOSS buttom??
unlucky that the dd-wrt wiki haven't said anything about the command line behind the buttom: http://www.dd-wrt.com/wiki/index.php/SES_Button#Turning_on.2Foff_wireless
I notice one difference, when I use the AOSS buttom to turn radio off, the security LED light black-out (strange, right?); however, when I type ifconfig to turn it off, the WIFI LED light black-out. It proved that they have different command.
i m using buffalo WZR-300HP
i just try to compare the nvram show, ifconfig and ps outputs before and after the buttom is pressed, but seems no clue how the AOSS buttom works to turn off the radio...sign