PPP Auto Check Crontab
From MS Computech
July 09 2009 PPP Auto check use crontab
mail:~# mkdir /app mail:~# nano /app/check_connection.sh
<source lang=bash>
- !/bin/bash
PATH=$PATH:/sbin
- Make sure ppp0 is still up
if [ "`ifconfig | grep ppp0`" == ] then ifdown ppp0
- ifup ppp0
poff pon dsl-provider fi </source> Add cron
mail:~# crontab -e
<source lang=text>
- /1 * * * * sh /app/check_connection.sh
</source> Restart cron
mail:~# /etc/init.d/cron restart mail:~# crontab -l