Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Oct 2007 14:08:16 +0300
From:      Mike Makonnen <mtm@FreeBSD.Org>
To:        Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
Cc:        freebsd-rc@freebsd.org
Subject:   Re: multiple instances of ppp
Message-ID:  <20071007110815.GA16458@terra.mike.lan>
In-Reply-To: <bb4a86c70710061549o14447dfye9553a42ef77cadc@mail.gmail.com>
References:  <bb4a86c70710061314j588ce9a9s6922d2c1e7100e6a@mail.gmail.com> <20071006215757.GA10458@terra.mike.lan> <bb4a86c70710061549o14447dfye9553a42ef77cadc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071007110815.GA16458>