How to schedule cron job for WiFi on/off on weekdays/weekend

Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware
Author Message
Governa
DD-WRT Novice


Joined: 10 Nov 2010
Posts: 21

PostPosted: Sun Aug 28, 2016 23:46    Post subject: How to schedule cron job for WiFi on/off on weekdays/weekend Reply with quote
I would like to be able to switch the wireless radio off at different times during weekdays and weekends.

I've searched the forum for cron jobs but they don't seem to be compatible with my DIR-615 D2, namely the commands posted in this thread: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=11457

Example:

Code:
under "additonal cron jobs"

0 0 * * 6 root wl radio off
0 0 * * 1 root wl radio on


I don't think wl works under my ralink based router. What would be a valid command?
Sponsor
Specimen
DD-WRT User


Joined: 22 Mar 2013
Posts: 112

PostPosted: Mon Aug 29, 2016 18:27    Post subject: Reply with quote
I suggest you test any command via SSH to your router before committing it as a cron job.

Specifically, 'wl' is not present in Ralink units AFAIK, there's a 'wl_rt2880' that might or might not have the same features as 'wl'.

Secondly, in cron I suggest you put the full path to the executable.

Example:
Code:
0 0 * * 6 root /usr/sbin/wl_rt2880 radio off
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Ralink SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum