1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/pppoed 136224 2004-10-07 13:55:26Z mtm $
| 3# $FreeBSD: head/etc/rc.d/pppoed 165664 2006-12-30 22:53:20Z yar $
|
4# 5 6# PROVIDE: pppoed 7# REQUIRE: NETWORKING 8# BEFORE: DAEMON 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 13name="pppoed" 14rcvar="`set_rcvar`" 15start_cmd="pppoed_start" 16# XXX stop_cmd will not be straightforward 17stop_cmd=":" 18 19pppoed_start() 20{
| 4# 5 6# PROVIDE: pppoed 7# REQUIRE: NETWORKING 8# BEFORE: DAEMON 9# KEYWORD: nojail 10 11. /etc/rc.subr 12 13name="pppoed" 14rcvar="`set_rcvar`" 15start_cmd="pppoed_start" 16# XXX stop_cmd will not be straightforward 17stop_cmd=":" 18 19pppoed_start() 20{
|
| 21 local _opts 22
|
21 if [ -n "${pppoed_provider}" ]; then 22 pppoed_flags="${pppoed_flags} -p ${pppoed_provider}" 23 fi 24 echo 'Starting pppoed' 25 _opts=$-; set -f 26 /usr/libexec/pppoed ${pppoed_flags} ${pppoed_interface} 27 set +f; set -${_opts} 28} 29 30load_rc_config $name 31run_rc_command "$1"
| 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 32load_rc_config $name 33run_rc_command "$1"
|