SullyTheUnusual
Occasional Visitor
I found an easier way (for me) to manage my kid's WiFi access. I enable/disable guest networks via a small script that my wife and I can run from a term app on our phones. The networks then automatically turn off via a cron set to run in the evening. This way, they don't have to "forget the network" and retype a password every day. Also, if I want to turn off their WiFi at some point during the day, I just run the script with "off" as an argument instead of "on".
Code:
#/bin/sh
# Turn on/off kid's wifi for 16 hours
if [ $1 = "on" ]; then
nvram set wl0.1_bss_enabled=1
nvram set wl0.1_expire_tmp=57600
service restart_wireless
elif [ $1 = "off" ]; then
nvram set wl0.1_bss_enabled=0
nvram set wl0.1_expire_tmp=0
service restart_wireless
else
echo "Invalid parameter! Acceptable parameters are ON or OFF"
fi