Posts for the month of May 2019

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/
# cat /etc/custom_scripts/
if iwinfo | grep -iq ragnarok_guest; then
  rm -f /tmp/guest_down
  exit 0
if [ -e /tmp/guest_down ]; then
  echo "$(date) -- REBOOTING" > /var/log/guest_check
touch /tmp/guest_down
echo "$(date) -- DOWN" > /var/log/guest_check
#service network stop
#service network start
wifi down
wifi up