Joined: 06 Nov 2006 Posts: 42 Location: Aachen, Cologne, Germany
Posted: Thu Jan 13, 2011 16:58 Post subject: Switching WLAN off by cron
Hi,
I searched alot and found some other threads (all years old) but none of it works...
I'm searching a way to switch WLAN / Radio off by cron (or by time in general) on my fonera with Build 14986.
The reason: I'm using this fonera as a "gateway" to my Guest-WLAN on my Fritzbox to get some VMs to the internet without having them in my LAN. But there is no need to have Wlan on all the time - since the WLAN on the Fritz is off for ~10 hours a day...
any way to do this? There is no /usr/sbin/wl on my fon...
Note that the second script uses ifconfig rather than wl, so it should work for you. _________________ Running dd-wrt on Linksys E2000, WRT54G2 v1, WRT54G v2.2, and testing SD/MMC on a WRT54G v5
I was suggesting sources for script segments. I don't think you'll find a pre-writtem script that does what you need.
You could modify the firt script (using the button) with the instructions from the second that uses ifconfig rather than wl. _________________ Running dd-wrt on Linksys E2000, WRT54G2 v1, WRT54G v2.2, and testing SD/MMC on a WRT54G v5
Joined: 06 Nov 2006 Posts: 42 Location: Aachen, Cologne, Germany
Posted: Thu Jan 13, 2011 20:26 Post subject:
Hmm - looks very interessting but it's the same problem... radio turns back on some seconds after the script finishes...
Code:
64 bytes from 192.168.179.21: seq=3950 ttl=64 time=2.469 ms
64 bytes from 192.168.179.21: seq=3951 ttl=64 time=2.091 ms
64 bytes from 192.168.179.21: seq=3952 ttl=64 time=2.611 ms
64 bytes from 192.168.179.21: seq=4017 ttl=64 time=16.450 ms
64 bytes from 192.168.179.21: seq=4018 ttl=64 time=3.845 ms
64 bytes from 192.168.179.21: seq=4019 ttl=64 time=3.296 ms
Same effect without gpio disable 2...
Maybe it's cause the fonera is running in bridged mode?
What happens if you telnet into the router and manually disable the interface with the ifconfig command?
Does it stay disabled?
Sorry I can't duplicate your conditions with my router... _________________ Running dd-wrt on Linksys E2000, WRT54G2 v1, WRT54G v2.2, and testing SD/MMC on a WRT54G v5
Joined: 06 Nov 2006 Posts: 42 Location: Aachen, Cologne, Germany
Posted: Fri Jan 14, 2011 9:34 Post subject:
I know it's a cron - but:
- using it as a cronjob the wlan interface turns back on after some seconds
- using only the script it turns back on after some seconds
- using the script through the webgui it turns back on after some seconds
There is no wireless scheduler available on the webgui - otherwise i wouldn't ask