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 126.96.36.199
(188.8.131.52. being the a google DNS) which would cover the monitoring part without perform any action.
To link an action to success (&&) or failure (||) or both append the wanted condition + command
/bin/ping -q -c1 184.108.40.206 || /sbin/service wan restart #if ping fails restart the wan
/bin/ping -q -c1 220.127.116.11 || /sbin/reboot # if ping fails reboot the device
/bin/ping -q -c1 18.104.22.168 && /usr/bin/logger “Internet available” || /usr/bin/logger “Internet unavailable” # successful ping will log “Internet Available” where ping failure logs “Internet unavailable”