Код: Выделить всё
#!/bin/sh
ping -c 2 meta.ua
if [ $? -eq 0 ]
else
route add default 192.168.1.158
fi
Код: Выделить всё
*/1 * * * * /etc/script/route.sh
Код: Выделить всё
Aug 6 11:25:00 /usr/sbin/cron[1140]: (root) CMD (/etc/script/route.sh)
Aug 6 11:27:02 /usr/sbin/cron[1149]: (root) CMD (/etc/script/route.sh)