mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
27bc1b287e
while. This is only the script pieces, the glue for the build comes next. Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson
32 lines
517 B
Bash
32 lines
517 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: pppoed
|
|
# REQUIRE: NETWORKING
|
|
# BEFORE: DAEMON
|
|
# KEYWORD: FreeBSD
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="pppoed"
|
|
rcvar="`set_rcvar`"
|
|
start_cmd="pppoed_start"
|
|
# XXX stop_cmd will not be straightforward
|
|
stop_cmd=":"
|
|
|
|
pppoed_start()
|
|
{
|
|
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"
|