Hello Guys,
I am looking for a script to Disable the Wireless at 12am and Enable the wireless again at 6am? I am not finding information on how to do this and if someone could point me in the right direction?
Thanks,
Dereck
Hello Guys,
I am looking for a script to Disable the Wireless at 12am and Enable the wireless again at 6am? I am not finding information on how to do this and if someone could point me in the right direction?
Thanks,
Dereck
/system script
add name=WiFiOn policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
source="/interface enable wlan1"
add name=WiFiOff policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive \
source="/interface disable wlan1"
/system scheduler
add interval=1d name=TurnWiFiOn on-event=WiFiOn policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive start-date=oct/10/2014 \
start-time=06:00:00
add interval=1d name=TurnWiFiOff on-event=WiFiOff policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive start-date=oct/10/2014 \
start-time=00:00:01
That will put in the scripts to turn the wlan1 interface on and off
Then it will put in a scheduler to fire those scripts.
Change the name of wlan1 to whatever you call the wireless interface if need be.