What's new

Enable wireless guest network from CLI

  • 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!

sbarmen

New Around Here
Hello,

we have set up a guest network with 14 hours access for the kids. If we log on to the web interface and click enable this network lasts for 14 hours and then expires. I have set up a crontab script under /jffs/scripts/ that is stored and recreated every boot. I would like to add a "cru a" line to add to the crontab command to be run every day for instance at 0600 hours every morning. This way the guest network enabled at 6 times out at 20:00 hours every night.

I envisioned adding something like this to the crontab:

0 6 * * * /jffs/scripts/enable_guest_network.sh

The enable_guest_network.sh should contain something like:

#!/bin/sh
wl -i wl0.1 enable
wl -i wl1.1 enable

I know of course not what command to put into the enable_guest_network.sh, hence my post for guidance on this topic.

Thank you for any help!
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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