OpenWrt Forum Archive

Topic: Turn wifi on and off at given times

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey there,

Does anybody know, if there is a script or documentation on how to enable OpenWRT to automatically turn off wifi at a given time, and later on (e.g. in the morning) turn it back on? I've searched for a while and couldn't find anything.

If there isn't a real solution yet, I'll have to start scripting a bit ^^
But then I would like to check, if there are still wireless clients connected before I turn off wifi. Does anyone know how to list wireless clients connected to the box?
(Ok, reading WiViz sourcecode will definitely provide some answers, but perhaps anybody just knows the commands).


Thanks in advance!


swaldester

well I suppose you need cron like utility and a script with a "wl radio on/off" equivalent command

Yes I think so too

wifi up and wifi down should work, too

The discussion might have continued from here.