From owner-freebsd-current Tue Feb 16 06:17:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA21659 for freebsd-current-outgoing; Tue, 16 Feb 1999 06:17:27 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from verdi.nethelp.no (verdi.nethelp.no [158.36.41.162]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA21648 for ; Tue, 16 Feb 1999 06:17:25 -0800 (PST) (envelope-from sthaug@nethelp.no) From: sthaug@nethelp.no Received: (qmail 14620 invoked by uid 1001); 16 Feb 1999 14:17:23 +0000 (GMT) To: luoqi@watermarkgroup.com Cc: current@FreeBSD.ORG Subject: Re: /etc/defaults/rc.conf In-Reply-To: Your message of "Tue, 16 Feb 1999 09:04:11 -0500 (EST)" References: <199902161404.JAA19485@lor.watermarkgroup.com> X-Mailer: Mew version 1.05+ on Emacs 19.34.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Tue, 16 Feb 1999 15:17:23 +0100 Message-ID: <14618.919174643@verdi.nethelp.no> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Initially I though /etc/defaults/rc.conf stored the default settings and then > we could override some of the settings in /etc/rc.conf, but after a close > look at how they are used in /etc/rc*, I am confused: > > if [ -f /etc/defaults/rc.conf ]; then > . /etc/defaults/rc.conf > elif [ -f /etc/rc.conf ]; then > . /etc/rc.conf > fi Check out the tail end of /etc/defaults/rc.conf - you'll find it sources /etc/rc.conf (or /etc/rc.conf.local). Steinar Haug, Nethelp consulting, sthaug@nethelp.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message