Here is the script, comments include a small guide.
#!/bin/sh
# author:
[email protected]
# script for monitoring internet connection
# uses following crontab (/var/spool/cron/crontabs/<routeradminname>):
# * * * * * /jffs/check_net_routerv
# restoring crontab...