Setting rc scripts default values

Vasil Dimov vd at FreeBSD.org
Fri Feb 23 07:18:42 UTC 2007


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:
> > 
> > . /etc/rc.subr
> > rcvar=`set_rcvar`
> > foo_enable="NO"
> > load_rc_config ${name}  # foo_enable="YES" is in /etc/rc.conf
> > 
> > ends up with foo_enable="NO"?
> > 
> > Thanks.
> 
> 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...

-- 
Vasil Dimov
gro.DSBeerF at dv
%
Those who desire to give up freedom in order to gain security, will not have,
nor do they deserve, either one.
                -- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20070223/51756653/attachment.pgp


More information about the freebsd-rc mailing list