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