Subject: Re: ups-nut rc.d scripts
To: Ron Roskens <firstname.lastname@example.org>
From: Johnny Lam <email@example.com>
Date: 11/20/2001 17:18:52
On Tue, Nov 20, 2001 at 05:45:06PM -0600, Ron Roskens wrote:
> On Tue, 20 Nov 2001 14:19:52 -0600 (CST) Frederick Bruckman
> <firstname.lastname@example.org> wrote:
> > It would not be difficult to write an "INSTALL" script that appends to
> > "/etc/rc.conf" only if the variable in question is not already set
> > there, but that would be wrong. It would also be wrong to modify
> > "/etc/defaults/rc.conf", since that gets overwritten when NetBSD is
> > upgraded. My considered opinion, is that we should have "/etc/rc.conf"
> > source one more file for the package defaults, and I suggest we call it
> > something like "/etc/defaults/pkg.rc.conf".
> Inside /etc/rc.subr:load_rc_config(), it will check for the
> existance of an /etc/rc.conf.d/$name file and load it. Put the
> defaults into that file, and let the admin put their overrides
> into /etc/rc.conf.
No. load_rc_config sources /etc/rc.conf, then sources whatever is in
/etc/rc.conf.d. If we stick default into that file, it will override
whatever is in /etc/rc.conf.
-- Johnny Lam <email@example.com>