Skip to content

Instantly share code, notes, and snippets.

@webdevsuperfast
Created December 29, 2021 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webdevsuperfast/c35124433ab816521b891b023688d9d8 to your computer and use it in GitHub Desktop.
Save webdevsuperfast/c35124433ab816521b891b023688d9d8 to your computer and use it in GitHub Desktop.
MWAN3 error detection
#!/bin/sh
STATUS=$(/usr/sbin/mwan3 status)
if [ "$STATUS" != "${STATUS/error/} ]; then
/usr/sbin/mwan3 restart
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment