#!/bin/sh # # chkconfig: 2345 15 85 # description: pppd init script. # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 # pppd pppd=/usr/sbin/pppd # See how we were called. case "$1" in start) # Start daemons. echo -n "Starting pppd: " daemon $pppd eth1 echo ;; stop) # Stop daemons. echo -n "Stopping pppd: " killproc pppd echo ;; restart) $0 stop $0 start ;; *) echo "Usage: frox {start|stop|restart}" exit 1 esac exit 0