home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / live / etc / init.d / ppp < prev    next >
Text File  |  1998-05-26  |  649b  |  31 lines

  1. #! /bin/sh
  2. # /etc/init.d/ppp: start or stop PPP.
  3.  
  4. FLAGS="start 20 2 3 4 5 . stop 20 0 1 6 ."
  5. # NO_RESTART_ON_UPGRADE
  6.  
  7. test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
  8.  
  9. case "$1" in
  10.   start)
  11.       echo -n "Starting up PPP link: pppd"
  12.       start-stop-daemon --start --quiet --exec /usr/sbin/pppd -- call provider
  13.       echo "."
  14.     ;;
  15.   stop)
  16.       echo -n "Shutting down PPP link: pppd"
  17.       start-stop-daemon --stop --quiet --exec /usr/sbin/pppd
  18.       echo "."
  19.     ;;
  20.   restart|force-reload)
  21.       $0 stop
  22.       $0 start
  23.     ;;
  24.   *)
  25.       echo "Usage: /etc/init.d/ppp {start|stop|restart|force-reload}"
  26.       exit 1
  27.     ;;
  28. esac
  29.  
  30. exit 0
  31.