#! /bin/sh
# /etc/init.d/ppp: start or stop PPP.

RCDLINKS="2,S20 3,S20 4,S20 5,S20 0,K20 1,K20 6,K20"

# NO_RESTART_ON_UPGRADE

test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0

case "$1" in
  start)
      echo -n "Starting up PPP link: pppd"
      start-stop-daemon --start --quiet --exec /usr/sbin/pppd -- call provider
      echo "."
    ;;
  stop)
      echo -n "Shutting down PPP link: pppd"
      start-stop-daemon --stop --quiet --exec /usr/sbin/pppd
      echo "."
    ;;
  restart|force-reload)
      $0 stop
      $0 start
    ;;
  *)
      echo "Usage: /etc/init.d/ppp {start|stop|restart|force-reload}"
      exit 1
    ;;
esac

exit 0
