#!/bin/sh RUNNING=0; if [ -a /var/run/ppp0.pid ]; then RUNNING=1; fi if [ "$RUNNING" = "1" ]; then echo `/bin/date` "pppd OK" > /dev/null else echo `/bin/date` "pppd DOWN" >> /var/log/ppp.log; kill -9 `pidof pppd` /bin/date sleep 10 /etc/rc.d/rc.his fi exit 0