Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 1999 04:48:05 -0600 (CST)
From:      Richard Wackerbarth <rkw@dataplex.net>
To:        "Scot W. Hetzel" <hetzels@westbend.net>
Cc:        FreeBSD-Current <FreeBSD-Current@FreeBSD.ORG>
Subject:   Re: Possible fix for rc.conf
Message-ID:  <Pine.BSF.4.05.9903210444560.52205-100000@nomad.dataplex.net>
In-Reply-To: <004001be732c$7960e0e0$8dfee0d1@westbend.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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