2002-06-13 22:14:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: pppoed
|
|
|
|
# REQUIRE: NETWORKING
|
|
|
|
# BEFORE: DAEMON
|
2004-10-07 13:55:26 +00:00
|
|
|
# KEYWORD: nojail
|
2002-06-13 22:14:37 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="pppoed"
|
2016-04-23 16:10:54 +00:00
|
|
|
desc="Handle incoming PPP over Ethernet connections"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="pppoed_enable"
|
2002-06-13 22:14:37 +00:00
|
|
|
start_cmd="pppoed_start"
|
|
|
|
# XXX stop_cmd will not be straightforward
|
|
|
|
stop_cmd=":"
|
|
|
|
|
|
|
|
pppoed_start()
|
|
|
|
{
|
2006-12-30 22:53:20 +00:00
|
|
|
local _opts
|
|
|
|
|
2002-06-13 22:14:37 +00:00
|
|
|
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"
|