multiple instances of ppp
Mike Makonnen
mtm at FreeBSD.Org
Sun Oct 7 04:03:57 PDT 2007
On Sat, Oct 06, 2007 at 03:49:57PM -0700, Maksim Yevmenkin wrote:
>
> thanks for your comments. what do you think about something like
>
> # PROVIDE: ppp
> # REQUIRE: netif isdnd
> # KEYWORD: nojail
>
> . /etc/rc.subr
>
> name="ppp"
> rcvar=`set_rcvar`
> command="/usr/sbin/${name}"
> start_cmd="ppp_start"
> start_postcmd="ppp_poststart"
>
> ppp_start_profile()
> {
> local _ppp_profile, _ppp_mode, _ppp_nat
You should lose the commas. Local variable declarations are space-separated.
Other than that, looks good.
cheers.
--
Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc
mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55
mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org
More information about the freebsd-rc
mailing list