Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- x=`ping -c1 google.com 2>&1 | grep unknown`
- if [ ! "$x" = "" ]; then
- echo "rebooted" >> /home/rix/admin.log
- reboot
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement