From owner-freebsd-rc@FreeBSD.ORG Fri Feb 23 07:18:42 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BF0E416A400; Fri, 23 Feb 2007 07:18:42 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.freebsd.org (Postfix) with ESMTP id 74EE113C48E; Fri, 23 Feb 2007 07:18:42 +0000 (UTC) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id 53768B848; Fri, 23 Feb 2007 09:18:41 +0200 (EET) Received: (nullmailer pid 96745 invoked by uid 1002); Fri, 23 Feb 2007 07:18:41 -0000 Date: Fri, 23 Feb 2007 09:18:41 +0200 From: Vasil Dimov To: Brooks Davis Message-ID: <20070223071841.GA96708@qlovarnika.bg.datamax> References: <20070222172658.GA40593@qlovarnika.bg.datamax> <20070222222526.GA90840@lor.one-eyed-alien.net> <20070223063428.GA96292@qlovarnika.bg.datamax> <20070223065644.GA94159@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20070223065644.GA94159@lor.one-eyed-alien.net> Cc: freebsd-rc@freebsd.org Subject: Re: Setting rc scripts default values X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@FreeBSD.org List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 07:18:42 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2007 at 00:56:44 -0600, Brooks Davis wrote: > On Fri, Feb 23, 2007 at 08:34:28AM +0200, Vasil Dimov wrote: [...] > > Can you show me a scenario where this code: > >=20 > > . /etc/rc.subr > > rcvar=3D`set_rcvar` > > foo_enable=3D"NO" > > load_rc_config ${name} # foo_enable=3D"YES" is in /etc/rc.conf > >=20 > > ends up with foo_enable=3D"NO"? > >=20 > > Thanks. >=20 > load_rc_config is called from /etc/rc before any scripts are run on > startup. If that doesn't result in _rc_conf_loaded being set in the > script, the code is useless and should be ripped out (I'm not entierly > sure it isn't useless, but it's late here and I'm not going to test it > now). Thanks, I got a clue... --=20 Vasil Dimov gro.DSBeerF@dv % Those who desire to give up freedom in order to gain security, will not hav= e, nor do they deserve, either one. -- Benjamin Franklin --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFF3pVRFw6SP/bBpCARAiLQAJsF1j6Wg//B9cGpL2h6azRH5bkznQCgxF5X xMuANQY21pLQfpsxAobng9Q= =41sw -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--