Subject: Re: ups-nut rc.d scripts
To: Frederick Bruckman <>
From: Ron Roskens <>
List: tech-pkg
Date: 11/20/2001 17:45:06
On Tue, 20 Nov 2001 14:19:52 -0600 (CST) Frederick Bruckman 
<> 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.