/home/user/x.sh
ping google.ru -c 2
if [ $? !=0]; then
gnome-open xx.asp
else
echo "Work normal"
fi
/var/spool/cron/crontabs/user
* * * * * /home/user/x.sh
xx.asp
<html>
<head>
</head>
<body onload="document.getElementById('cmboot').submit();">
<form id="cmboot" action="http://192.168.1.1/goform/admin/formReboot" method="POST">
<input type="submit" value="Commit and Reboot" name="save">
</form>
</body>
</html>