iwm: Fix S:N reporting in ifconfig(8)
[dragonfly.git] / etc / rc.d / sppp
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/rc.d/sppp,v 1.2 2003/04/18 17:55:05 mtm Exp $
4 #
5
6 # PROVIDE: sppp
7 # REQUIRE: FILESYSTEMS
8 # BEFORE:  netif
9
10 . /etc/rc.subr
11
12 name="sppp"
13 start_cmd="sppp_start"
14 stop_cmd=":"
15
16 sppp_start()
17 {
18         # Special options for sppp(4) interfaces go here.  These need
19         # to go _before_ the general ifconfig since in the case
20         # of hardwired (no link1 flag) but required authentication, you
21         # cannot pass auth parameters down to the already running interface.
22         #
23         for ifn in ${sppp_interfaces}; do
24                 eval spppcontrol_args=\$spppconfig_${ifn}
25                 if [ -n "${spppcontrol_args}" ]; then
26                         # The auth secrets might contain spaces; in order
27                         # to retain the quotation, we need to eval them
28                         # here.
29                         eval spppcontrol ${ifn} ${spppcontrol_args}
30                 fi
31         done
32 }
33
34 load_rc_config $name
35 run_rc_command "$1"