sleep 15
logger -t reconnect.sh ====start====
netok=$(ping 114.114.114.114 -c3 |grep "time=")
if [ "$netok" ];then
logger -t reconnect.sh Network OK
else
logger -t reconnect.sh ====netok false====
/etc/init.d/network restart
fi
logger -t reconnect.sh ====end====
网友评论