Subject: default values for variables in rc.d scripts
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.nov.zwei@onlinehome.de>
List: tech-pkg
Date: 11/04/2002 21:43:08
Hi,

with NetBSD 1.5.x. load_rc_config() (in rc.subr) loads /etc/rc.conf and
thus overrides any values for variables (${rcvar} and ${rcvar}_flags)
set in the rc.d script.

With 1.6, load_rc_config() only loads /etc/rc.conf once during startup
(depends on $_rc_conf_loaded) and does _not_ override the variables.

How are we supposed to set default values for those variables in package
rc.d scripts?

Maybe we could use files in PKG_SYSCONFBASE/rc.conf.d/ and install them
in /etc/rc.conf.d/ the same way we do with RCD_SCRIPTS from
PKG_SYSCONFBASE/rc.d/ to /etc/rc.d/?

ciao
     Klaus