Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 1999 03:09:03 -0600 (CST)
From:      Richard Wackerbarth <rkw@dataplex.net>
To:        "Jordan K. Hubbard" <jkh@zippy.cdrom.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: /etc/rc.conf, take 46!
Message-ID:  <Pine.BSF.4.05.9903220254300.71658-100000@nomad.dataplex.net>
In-Reply-To: <39218.922068401@zippy.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 21 Mar 1999, Jordan K. Hubbard wrote:
> Index: netstart
> ===================================================================
> RCS file: /home/ncvs/src/etc/netstart,v
> retrieving revision 1.53
> diff -u -u -r1.53 netstart
> --- netstart	1999/02/10 18:08:16	1.53
> +++ netstart	1999/03/22 01:54:16
> @@ -12,8 +12,11 @@
>  # If there is a global system configuration file, suck it in.
>  if [ -f /etc/defaults/rc.conf ]; then
>  	. /etc/defaults/rc.conf
> -elif [ -f /etc/rc.conf ]; then
> -	. /etc/rc.conf
> +	for i in ${rc_conf_files}; do
> +        	if [ -f $i ]; then
> +                	. $i
> +        	fi
> +	done
>  fi

There is a problem with this approach.

/etc/defaults/rc.conf defines ${rc_conf_files}
However, I have no chance to override it before it is used.

When I wrote my comment about "code" in rc.conf, I was
actually thinking about /etc/defaults/rc.conf and the
recursion loop that that creates when someone copies it to
/etc/rc.conf.

You can, and IMHO should, make the defaults strictly variables.

However, I fear that you need a bit more logic to allow the
overriding of ${rc_conf_files}.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903220254300.71658-100000>