From owner-freebsd-current Sun Mar 21 2:48:29 1999 Delivered-To: freebsd-current@freebsd.org Received: from nomad.dataplex.net (nomad.dataplex.net [216.140.184.163]) by hub.freebsd.org (Postfix) with ESMTP id DFC9E14EEC for ; Sun, 21 Mar 1999 02:48:27 -0800 (PST) (envelope-from rkw@dataplex.net) Received: from localhost (rkw@localhost) by nomad.dataplex.net (8.9.2/8.9.2) with ESMTP id EAA53750; Sun, 21 Mar 1999 04:48:05 -0600 (CST) (envelope-from rkw@dataplex.net) X-Authentication-Warning: nomad.dataplex.net: rkw owned process doing -bs Date: Sun, 21 Mar 1999 04:48:05 -0600 (CST) From: Richard Wackerbarth Reply-To: rkw@dataplex.net To: "Scot W. Hetzel" Cc: FreeBSD-Current Subject: Re: Possible fix for rc.conf In-Reply-To: <004001be732c$7960e0e0$8dfee0d1@westbend.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Why do we need to have ANY of the file inclusion in /etc/defaults/rc.conf? Shouldn't that file simply be definitions of variables? IMHO, the "logic" should be in "rc" itself. On Sat, 20 Mar 1999, Scot W. Hetzel wrote: > What does everyone think about using this at the end of > /etc/defaults/rc.conf? > > for i in ${rc_conf_files}; do > if [ $0 != $i ]; then > if [ -f $i ]; then > . $i > fi > else > echo "Error: $0 isn't allowed to re-load $i." > echo "Error: Please do not copy /etc/defaults/rc.conf to > /etc/rc.conf" > fi > done > > If someone does copy the /etc/defaults/rc.conf to /etc/rc.conf, /etc/rc.conf > will not reload it's self, thus it will never get stuck in an endless loop. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message