Advertisement
Guest User

Untitled

a guest
May 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #这里需要定制的变量ipv6domain1,ipv6domain2
  2.  
  3. ping6 -c 5 $ipv6domain1
  4. status1=$?
  5.  
  6. ping6 -c 5 $ipv6domain2
  7. status2=$?
  8.  
  9. if [ "$status1" != 0 ] && [ "$status2" != 0 ]; then
  10. echo restart pppoe...
  11. ifdown ETHERNET
  12. ifup ETHERNET
  13. /etc/init.d/odhcpd restart
  14.  
  15. #60s
  16. echo "wait 60s"
  17. sleep 60
  18. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement