Subject: Re: post-installation and rc.d enhancements
To: Simon J. Gerraty <>
From: Andrew Brown <>
List: tech-userlevel
Date: 04/18/2002 01:15:20
>>> Clearly (?) only a single file for user parameter changes is required.
>>Exactly. But "/etc/rc.conf" is sourced *before* "/etc/rc.conf.d/$name",
>That presumably is a bug :-)
>If the various conf files are processed in the correct order, life is
>much simpler for everyone.

no, that's the intended behavior.  rc.conf is for settings.  rc.conf.d
is for overriding those settings.  rc.conf.d can also provide scoped
pieces of sh stuff that don't belong in rc.conf.  for example: here's
my /etc/rc.conf.d/ssh file:

	if [ "$sshd" = pkgsrc ]; then

which allows me to set a machine to YES, NO, or pkgsrc.  neat, eh?

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."