1 #!/bin/sh 2 # 3 # $NetBSD: ppp,v 1.1 2000/03/10 11:53:24 lukem Exp $ 4 # 5 6 # should provide `network' perhaps? 7 # PROVIDE: ppp 8 # note that this means that syslogd will not be listening on 9 # any PPP addresses. this is considered a feature. 10 # REQUIRE: systemfs syslogd 11 12 . /etc/rc.subr 13 . /etc/rc.conf 14 15 name="ppp" 16 start_cmd="ppp_start" 17 stop_cmd=":" 18 19 ppp_start() 20 { 21 # /etc/ppp/peers and $ppp_peers contain boot configuration 22 # information for pppd. each value in $ppp_peers that has a 23 # file in /etc/ppp/peers of the same name, will be run as 24 # `pppd <peer>'. 25 # 26 if [ -n "$ppp_peers" ]; then 27 set -- $ppp_peers 28 echo -n "Starting pppd:" 29 while [ $# -ge 1 ]; do 30 peer=$1 31 shift 32 if [ -f /etc/ppp/peers/$peer ]; then 33 pppd call $peer 34 echo -n " $peer" 35 fi 36 done 37 echo "." 38 fi 39 } 40 41 run_rc_command "$1" 42