Created
December 29, 2021 04:24
-
-
Save webdevsuperfast/c35124433ab816521b891b023688d9d8 to your computer and use it in GitHub Desktop.
MWAN3 error detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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