Created
March 3, 2017 20:50
-
-
Save DustinAlandzes/9e8afb96d6f4b26327fb7e8b422f1a29 to your computer and use it in GitHub Desktop.
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
| ping -c4 google.com > /dev/null | |
| if [ $? != 0 ] | |
| then | |
| echo "No network connection, restarting wlan0" | |
| /sbin/ifdown 'wlan0' | |
| sleep 10s | |
| /sbin/ifup --force 'wlan0' | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment