while `sleep 10`; do
ping -w 2 ya.ru > /dev/null
exitcode=$?
if [ $exitcode -ne 0 ]; then
/etc/init.d/ppp0 stop
sleep 60
/etc/init.d/ppp0 start
fi
done
ping -w 2 ya.ru > /dev/null
exitcode=$?
if [ $exitcode -ne 0 ]; then
/etc/init.d/ppp0 stop
sleep 60
/etc/init.d/ppp0 start
fi
done
Комментариев нет:
Отправить комментарий