Posted: Mon Jul 16, 2012 10:41 Post subject: Scheduled radio on off with cron jobs
Hello,
I'm struggling to make cron jobs to set the antenna to turn wifi off everyday between 22:00 and 09:00. This is what I'm putting in Additional Cron Jobs:
Quote:
0 22 * * 0,1,2,3,4,5,6 root wl radio off
0 9 * * 0,1,2,3,4,5,6 root wl radio on
The device is a NanoStation M2 with firmware v24-sp2.
I must be doing something wrong but I don't know what.
Can anyone help me?
Ok thank you,
I'll give it another try.
So the first thing I'm thinking after a bit of reading is settig tx power to 0.
This would be the notation in terminal
Quote:
iw dev <devname> set txpower <auto|fixed|limit> [<tx power in mBm>]
And to adapt it to my particular case in cron jobs I'd replace wl radio off so the result would be like this
Code:
0 22 * * 0,1,2,3,4,5,6 root iw dev wlan0 set txpower fixed 0
0 9 * * 0,1,2,3,4,5,6 root iw dev wlan0 set txpower fixed 2000
Would this work?
Well, I'll go and try it, even though not with much hope.