mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
45da9952e5
scripts, except for mdconfig* and jail. Such symbols are reserved for the rc.subr internals. Most scripts can be fixed by just declaring _foo symbols as local: few scripts actually need them to be global. Discussed with: dougb in freebsd-rc
34 lines
530 B
Bash
34 lines
530 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: pppoed
|
|
# REQUIRE: NETWORKING
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: nojail
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="pppoed"
|
|
rcvar="`set_rcvar`"
|
|
start_cmd="pppoed_start"
|
|
# XXX stop_cmd will not be straightforward
|
|
stop_cmd=":"
|
|
|
|
pppoed_start()
|
|
{
|
|
local _opts
|
|
|
|
if [ -n "${pppoed_provider}" ]; then
|
|
pppoed_flags="${pppoed_flags} -p ${pppoed_provider}"
|
|
fi
|
|
echo 'Starting pppoed'
|
|
_opts=$-; set -f
|
|
/usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface}
|
|
set +f; set -${_opts}
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|