Created
March 25, 2014 14:43
-
-
Save pieterbeulque/9763252 to your computer and use it in GitHub Desktop.
Reboot on network drop
This file contains 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 192.168.1.1 > /dev/null | |
if [$? != 0] | |
then | |
sudo /sbin/shutdown -r now | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment