Wifi on/off cron job
Posted: Mon Jun 06, 2011 4:04 pm
Hello,
I've got one question about wifi on/off cron job. In openwrt configuration I've made two sh executables which I've called at specific time from cron job. In openwrt is possible manipulate with wifi trough uci.
It looked this way:
wifidisable:
#!/bin/sh
uci set wireless.@wifi-device[0].disabled=1
wifi
wifienable:
#!/bin/sh
uci set wireless.@wifi-device[0].disabled=0
wifi
I think that Gargoyle is way much better than openwrt for generic configuration but i would really like to manage wifi with cron job.
So is there any simple way to do this? At night i would like to turn off wifi and turn it back on in the morning.
Thank you!
Zmago
I've got one question about wifi on/off cron job. In openwrt configuration I've made two sh executables which I've called at specific time from cron job. In openwrt is possible manipulate with wifi trough uci.
It looked this way:
wifidisable:
#!/bin/sh
uci set wireless.@wifi-device[0].disabled=1
wifi
wifienable:
#!/bin/sh
uci set wireless.@wifi-device[0].disabled=0
wifi
I think that Gargoyle is way much better than openwrt for generic configuration but i would really like to manage wifi with cron job.
So is there any simple way to do this? At night i would like to turn off wifi and turn it back on in the morning.
Thank you!
Zmago