]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - etc/rc.d/sppp
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / etc / rc.d / sppp
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: sppp
7 # REQUIRE: root
8 # BEFORE: netif
9 # KEYWORD: nojail
10
11 . /etc/rc.subr
12
13 name="sppp"
14 start_cmd="sppp_start"
15 stop_cmd=":"
16
17 sppp_start()
18 {
19         # Special options for sppp(4) interfaces go here.  These need
20         # to go _before_ the general ifconfig since in the case
21         # of hardwired (no link1 flag) but required authentication, you
22         # cannot pass auth parameters down to the already running interface.
23         #
24         for ifn in ${sppp_interfaces}; do
25                 eval spppcontrol_args=\$spppconfig_${ifn}
26                 if [ -n "${spppcontrol_args}" ]; then
27                         # The auth secrets might contain spaces; in order
28                         # to retain the quotation, we need to eval them
29                         # here.
30                         eval spppcontrol ${ifn} ${spppcontrol_args}
31                 fi
32         done
33 }
34
35 load_rc_config $name
36 run_rc_command "$1"