#! /bin/sh

# PPP-Script 1.0.0
# Written by (Karsten Johansson) ksaj@ims.pcscav.com
# Sat Dec 2, 1995

# Run this file as root every 5 minutes from cron.

(
if ping -q -c 1 name.net
   then
      exit 0
   else
      if test -e /etc/ppp-down
      then
         exit 1
      else
            echo ppp restarted...
            /etc/ppp/ppp-up
      fi
fi
) > /dev/null

