Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #这里需要定制的变量ipv6domain1,ipv6domain2
- ping6 -c 5 $ipv6domain1
- status1=$?
- ping6 -c 5 $ipv6domain2
- status2=$?
- if [ "$status1" != 0 ] && [ "$status2" != 0 ]; then
- echo restart pppoe...
- ifdown ETHERNET
- ifup ETHERNET
- /etc/init.d/odhcpd restart
- #60s
- echo "wait 60s"
- sleep 60
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement