From owner-freebsd-arch Thu Jun 21 18: 1:47 2001 Delivered-To: freebsd-arch@freebsd.org Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.121.50]) by hub.freebsd.org (Postfix) with ESMTP id 201C037B403; Thu, 21 Jun 2001 18:01:44 -0700 (PDT) (envelope-from kway@overtone.org) Received: from bean.overtone.org (user-2iniksg.dialup.mindspring.com [165.121.83.144]) by avocet.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id SAA03424; Thu, 21 Jun 2001 18:01:41 -0700 (PDT) Received: by bean.overtone.org (Postfix, from userid 1001) id 48E315B47D; Thu, 21 Jun 2001 21:01:50 -0400 (EDT) Date: Thu, 21 Jun 2001 21:01:49 -0400 From: Kevin Way To: "David O'Brien" Cc: freebsd-arch@freebsd.org Subject: Re: (FWD) Re: import NetBSD rc system Message-ID: <20010621210149.A87391@bean.overtone.org> References: <20010620182320.D99923@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010620182320.D99923@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Wed, Jun 20, 2001 at 06:23:20PM -0700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Does anyone have any problems with this patch? No problems with it, but seeing as it officially means that the rc_new way to load configuration is the same as FreeBSD's way, the following patch should probably be included as well. -Kevin Way RCS file: /home/ncvs/src/etc/rc.subr,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 rc.subr --- rc.subr 2001/06/16 07:16:14 1.1.1.1 +++ rc.subr 2001/06/22 00:59:04 @@ -536,7 +536,13 @@ err 3 'USAGE: load_rc_config command' fi - . /etc/rc.conf + if [ -r /etc/defaults/rc.conf ]; then + . /etc/defaults/rc.conf + source_rc_confs + elif [ -r /etc/rc.conf ]; then + . /etc/rc.conf + fi + if [ -f /etc/rc.conf.d/"$_command" ]; then . /etc/rc.conf.d/"$_command" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message