Date: Fri, 23 Feb 2007 09:18:41 +0200 From: Vasil Dimov <vd@FreeBSD.org> To: Brooks Davis <brooks@freebsd.org> Cc: freebsd-rc@freebsd.org Subject: Re: Setting rc scripts default values Message-ID: <20070223071841.GA96708@qlovarnika.bg.datamax> In-Reply-To: <20070223065644.GA94159@lor.one-eyed-alien.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--+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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070223071841.GA96708>
