Page 1 of 1

Script to turn wireless off at night: is it possible?

Posted: Tue Nov 14, 2006 8:15 pm
by voip4life
I would like to know if anyone has any solutions possibly via scripting to turn a wireless hotspot system off at night (not the router, just wireless) after business hours, and then back on again in the morning? Like a scheduled event that runs all the time.

This would hopefully turn on wireless Mon-Fri between 8am and 8pm and off the rest of the time.

Posted: Wed Nov 15, 2006 10:36 am
by normis
simply make a script that does `disable` on `wlan1` (or whatever your wlan name is), then another one which does the opposite - and make the scheduler run each script at the appropriate time. should be very easy

Posted: Wed Nov 15, 2006 6:34 pm
by csickles
Search the forums for one of my old posts..
I wrote up a quicke on this one..

it takes two short scripts (one turns off the interface one turns it on)
then create two schedualer jobs. one runs the "off command script" one runs the "on script"..

I use this method to controle "open" hotspots from being used as warspammer sites after hours.

(the sites owners wont let me use hotspots to control access)


Posted: Wed Nov 15, 2006 10:00 pm
by voip4life
Thanks Normis and Craig, that's exactly what I was looking for.