Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pfail=0
- while [ true ]; do
- /bin/sleep 30
- if ping -c 1 184.152.16.1;then
- pfail=0
- continue
- else
- let pfail=pfail+1
- fi
- if [ $pfail -eq 2];then
- /sbin/dhcpc-renew
- /bin/sleep 15
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment