1 #!/bin/sh 2 # 3 # $NetBSD: ppp,v 1.3 2000/07/26 00:11:49 lukem Exp $ 4 # 5 6 # PROVIDE: ppp 7 # REQUIRE: mountcritremote syslogd 8 # 9 # Note that this means that syslogd will not be listening on 10 # any PPP addresses. This is considered a feature. 11 # 12 13 . /etc/rc.subr 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 load_rc_config $name 42 run_rc_command "$1" 43