198184Sgordon#!/bin/sh 298184Sgordon# 398184Sgordon# $FreeBSD: releng/10.2/etc/rc.d/pppoed 230099 2012-01-14 02:18:41Z dougb $ 498184Sgordon# 598184Sgordon 698184Sgordon# PROVIDE: pppoed 798184Sgordon# REQUIRE: NETWORKING 898184Sgordon# BEFORE: DAEMON 9136224Smtm# KEYWORD: nojail 1098184Sgordon 1198184Sgordon. /etc/rc.subr 1298184Sgordon 1398184Sgordonname="pppoed" 14230099Sdougbrcvar="pppoed_enable" 1598184Sgordonstart_cmd="pppoed_start" 1698184Sgordon# XXX stop_cmd will not be straightforward 1798184Sgordonstop_cmd=":" 1898184Sgordon 1998184Sgordonpppoed_start() 2098184Sgordon{ 21165664Syar local _opts 22165664Syar 2398184Sgordon if [ -n "${pppoed_provider}" ]; then 2498184Sgordon pppoed_flags="${pppoed_flags} -p ${pppoed_provider}" 2598184Sgordon fi 2698184Sgordon echo 'Starting pppoed' 2798184Sgordon _opts=$-; set -f 2898184Sgordon /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface} 2998184Sgordon set +f; set -${_opts} 3098184Sgordon} 3198184Sgordon 3298184Sgordonload_rc_config $name 3398184Sgordonrun_rc_command "$1" 34