]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/sppp
Fix incorrect checksum calculations with IPv6 extension headers.
[FreeBSD/FreeBSD.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 desc="Point to point protocol network layer for synchronous lines"
15 start_cmd="sppp_start"
16 stop_cmd=":"
17
18 sppp_start()
19 {
20         # Special options for sppp(4) interfaces go here.  These need
21         # to go _before_ the general ifconfig since in the case
22         # of hardwired (no link1 flag) but required authentication, you
23         # cannot pass auth parameters down to the already running interface.
24         #
25         for ifn in ${sppp_interfaces}; do
26                 eval spppcontrol_args=\$spppconfig_${ifn}
27                 if [ -n "${spppcontrol_args}" ]; then
28                         # The auth secrets might contain spaces; in order
29                         # to retain the quotation, we need to eval them
30                         # here.
31                         eval spppcontrol ${ifn} ${spppcontrol_args}
32                 fi
33         done
34 }
35
36 load_rc_config $name
37 run_rc_command "$1"