dma: drop CVS ids
[dragonfly.git] / etc / rc.d / sppp
blobcf1321d7febab12b21fe81b0f282c23a402e5d9f
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/sppp,v 1.2 2003/04/18 17:55:05 mtm Exp $
4 # $DragonFly: src/etc/rc.d/sppp,v 1.3 2005/11/19 21:47:32 swildner Exp $
7 # PROVIDE: sppp
8 # REQUIRE: root
9 # BEFORE: netif
11 . /etc/rc.subr
13 name="sppp"
14 start_cmd="sppp_start"
15 stop_cmd=":"
17 sppp_start()
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.
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}
32 done
35 load_rc_config $name
36 run_rc_command "$1"