This is an old revision of the document!
Connectivity Watchdog
You might want to monitor your Internet connectivity. To do so the simpliest way is to run a regular task under Administration/Scheduler/Custom 1 e.g.
The besic command would be something like:
/bin/ping -q -c1 8.8.4.4
which however would not perform any action.
To perform an action linked to success (&&) or failure (||) or both append the wanted command
Examples:
/bin/ping -q -c1 8.8.4.4 || /sbin/service wan restart
/bin/ping -q -c1 8.8.4.4 || /sbin/reboot
/bin/ping -q -c1 8.8.4.4 && /usr/bin/logger “Internet available” || /usr/bin/logger “Internet unavailable”
etc