SHARE
TWEET

Untitled

a guest May 16th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top