What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Scheduled Wireless

alan_smithee

Occasional Visitor
Hi,
I've been searching in the forums and wiki but I can't find the command to turn off both radio's (2.4 and 5.0).

I want to create a cron job that enables wireless at daytime and disables it at night.

When I look at the scheduled LED control page, I think it should look something like this:

services-start:
#!/bin/sh
cru a wirelessoff "0 23 * * * /jffs/scripts/wirelessoff.sh"
cru a wirelesson "0 6 * * * /jffs/scripts/wirelesson.sh"

wirelessoff.sh:
#!/bin/sh
nvram set ........
vram commit
service restart......

wirelesson.sh
#!/bin/sh
nvram set .........
nvram commit
service restart........
 
in wireles/professional tab you can set scheduler for wifi.
Not need cron job
 
Hi,
I've been searching in the forums and wiki but I can't find the command to turn off both radio's (2.4 and 5.0).

I want to create a cron job that enables wireless at daytime and disables it at night.

When I look at the scheduled LED control page, I think it should look something like this:

services-start:
#!/bin/sh
cru a wirelessoff "0 23 * * * /jffs/scripts/wirelessoff.sh"
cru a wirelesson "0 6 * * * /jffs/scripts/wirelesson.sh"

wirelessoff.sh:
#!/bin/sh
nvram set ........
vram commit
service restart......

wirelesson.sh
#!/bin/sh
nvram set .........
nvram commit
service restart........

Of course U did.... ;)

The relevent Wifi interface commands:

http://forums.smallnetbuilder.com/showpost.php?p=139785&postcount=4

and the command to effect the configuration change..

service restart_wireless

P.S. Jury remains out on the use of the 'nvram commit' (or even vram :D) given concerns about its potential detrimental impact on the life of NVRAM etc. but personally I don't think two writes per day is cause for concern.

Regards,
 
Thank you both.
I could have sworn I also Googled the phrase "Script to disable enable WiFi"... :confused:

Sometimes Google can be inconsistent with its results, but this is how how I did it...
 

Attachments

  • 2015-02-23_08-54-40.png
    2015-02-23_08-54-40.png
    97.1 KB · Views: 575

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top