]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - etc/rc.d/pppoed
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / etc / rc.d / pppoed
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: pppoed
7 # REQUIRE: NETWORKING
8 # BEFORE: DAEMON
9 # KEYWORD: nojail
10
11 . /etc/rc.subr
12
13 name="pppoed"
14 rcvar="pppoed_enable"
15 start_cmd="pppoed_start"
16 # XXX stop_cmd will not be straightforward
17 stop_cmd=":"
18
19 pppoed_start()
20 {
21         local _opts
22
23         if [ -n "${pppoed_provider}" ]; then
24                         pppoed_flags="${pppoed_flags} -p ${pppoed_provider}"
25         fi
26         echo 'Starting pppoed'
27         _opts=$-; set -f
28         /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface}
29         set +f; set -${_opts}
30 }
31
32 load_rc_config $name
33 run_rc_command "$1"