Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2001 21:01:49 -0400
From:      Kevin Way <kevin.way@overtone.org>
To:        "David O'Brien" <obrien@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: (FWD) Re: import NetBSD rc system
Message-ID:  <20010621210149.A87391@bean.overtone.org>
In-Reply-To: <20010620182320.D99923@dragon.nuxi.com>; from obrien@FreeBSD.ORG on Wed, Jun 20, 2001 at 06:23:20PM -0700
References:  <20010620182320.D99923@dragon.nuxi.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010621210149.A87391>