WiFi Checker for OpenWrt
It's been a while since I dumped anything here… hope I can post…
I have OpenWRT on my home router and it's using a secondary chipset to run a guest-only network that sometimes randomly drops out. I've been told they no longer support it in that manner, which explains a lot. Anyway, in case my config gets nuked, here's what I did:
# cat /etc/crontabs/root * * * * * /etc/custom_scripts/guest_check.sh # cat /etc/custom_scripts/guest_check.sh #!/bin/sh if iwinfo | grep -iq ragnarok_guest; then rm -f /tmp/guest_down exit 0 fi if [ -e /tmp/guest_down ]; then echo "$(date) -- REBOOTING" > /var/log/guest_check reboot fi touch /tmp/guest_down echo "$(date) -- DOWN" > /var/log/guest_check #service network stop #service network start wifi down wifi up
Comments
No comments.