CAM/UMASS - use xpt_action_async() to ensure asynchronous scsi bus scan.
[dragonfly.git] / etc / rc.d / pppoed
blob31c942f6875a3a65bcf66ff3fc96553183829d1e
1 #!/bin/sh
3 # $FreeBSD: src/etc/rc.d/pppoed,v 1.1 2002/06/13 22:14:36 gordon Exp $
4 # $DragonFly: src/etc/rc.d/pppoed,v 1.3 2005/11/19 21:47:32 swildner Exp $
7 # PROVIDE: pppoed
8 # REQUIRE: NETWORKING
9 # BEFORE: DAEMON
11 . /etc/rc.subr
13 name="pppoed"
14 rcvar="`set_rcvar`"
15 start_cmd="pppoed_start"
16 # XXX stop_cmd will not be straightforward
17 stop_cmd=":"
19 pppoed_start()
21 if [ -n "${pppoed_provider}" ]; then
22 pppoed_flags="${pppoed_flags} -p ${pppoed_provider}"
24 echo 'Starting pppoed'
25 _opts=$-; set -f
26 /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface}
27 set +f; set -${_opts}
30 load_rc_config $name
31 run_rc_command "$1"