From sethk@kaneda.meowfishies.com  Sun Oct 28 08:47:42 2001
Return-Path: <sethk@kaneda.meowfishies.com>
Received: from kaneda.meowfishies.com (c747958-d.plstn1.sfba.home.com [65.0.173.134])
	by hub.freebsd.org (Postfix) with ESMTP id 8178337B403
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 28 Oct 2001 08:47:40 -0800 (PST)
Received: (from sethk@localhost)
	by kaneda.meowfishies.com (8.11.3/8.11.3) id f9SGkvY79236;
	Sun, 28 Oct 2001 08:46:57 -0800 (PST)
	(envelope-from sethk)
Message-Id: <200110281646.f9SGkvY79236@kaneda.meowfishies.com>
Date: Sun, 28 Oct 2001 08:46:57 -0800 (PST)
From: Seth Kingsley <sethk@meowfishies.com>
Reply-To: Seth Kingsley <sethk@meowfishies.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: rc.syscons does not run standalone
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31555
>Category:       conf
>Synopsis:       rc.syscons does not run standalone
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 28 08:50:00 PST 2001
>Closed-Date:    Sat Aug 31 13:20:23 PDT 2002
>Last-Modified:  Sat Aug 31 13:20:23 PDT 2002
>Originator:     Seth Kingsley
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD kaneda.meowfishies.com 4.4-STABLE FreeBSD 4.4-STABLE #0:
Sun Oct 21 21:17:41 PDT 2001
sethk@kaneda.meowfishies.com:/usr/obj/usr/src/sys/KANEDA i386

>Description:
Syscons should the definitions in /etc/{defaults/,}rc.conf so it may be
run stand-alone.

>How-To-Repeat:
	% sh /etc/rc.syscons

>Fix:

--- rc.syscons.orig	Sun Oct 28 09:11:41 2001
+++ rc.syscons	Sun Oct 28 09:10:38 2001
@@ -28,6 +28,16 @@
 #	Do syscons configuration
 #
 
+# Suck in the configuration variables.
+if [ -z "${source_rc_confs_defined}" ]; then
+	if [ -r /etc/defaults/rc.conf ]; then
+		. /etc/defaults/rc.conf
+		source_rc_confs
+	elif [ -r /etc/rc.conf ]; then
+		. /etc/rc.conf
+	fi
+fi
+
 # stdin must be redirected because it might be for a serial console
 #
 kbddev=/dev/ttyv0

>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: Seth Kingsley <sethk@meowfishies.com>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/31555: rc.syscons does not run standalone
Date: Mon, 29 Oct 2001 11:18:46 +0200

 On Sun, Oct 28, 2001 at 08:46:57AM -0800, Seth Kingsley wrote:
 > 
 > >Number:         31555
 > >Category:       conf
 > >Synopsis:       rc.syscons does not run standalone
 > >Originator:     Seth Kingsley
 > >Release:        FreeBSD 4.4-STABLE i386
 > >Organization:
 > >Environment:
 > System: FreeBSD kaneda.meowfishies.com 4.4-STABLE FreeBSD 4.4-STABLE #0:
 > Sun Oct 21 21:17:41 PDT 2001
 > sethk@kaneda.meowfishies.com:/usr/obj/usr/src/sys/KANEDA i386
 > 
 > >Description:
 > Syscons should the definitions in /etc/{defaults/,}rc.conf so it may be
 > run stand-alone.
 > 
 > >How-To-Repeat:
 > 	% sh /etc/rc.syscons
 
 None of the other rc scripts are designed to run standalone.
 It's actually a simple matter of doing:
 
 % ( . /etc/defaults/rc.conf; source_rc_confs; . /etc/rc.syscons )
 
 I usually run those in a subshell so as not to clutter my login
 shell's environment.
 
 G'luck,
 Peter
 
 -- 
 If wishes were fishes, the antecedent of this conditional would be true.

From: Seth Kingsley <sethk@meowfishies.com>
To: Peter Pentchev <roam@ringlet.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: conf/31555: rc.syscons does not run standalone
Date: 29 Oct 2001 02:06:08 -0800

 --qlTNgmc+xy1dBmNv
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, Oct 29, 2001 at 11:18:46AM +0200, Peter Pentchev wrote:
 > On Sun, Oct 28, 2001 at 08:46:57AM -0800, Seth Kingsley wrote:
 > > >Synopsis:       rc.syscons does not run standalone
 >=20
 > None of the other rc scripts are designed to run standalone.
 
 Save for rc.firewall and rc.devfs, yes.  But what, then, would be the
 purpose of ${source_rc_confs_defined} in /etc/defaults/rc.conf?
 
 --=20
 || Seth Kingsley || Meow Meow Fluff Fluff || sethk@meowfishies.com ||
 || rndcontrol -s 0                                                 ||
 
 --qlTNgmc+xy1dBmNv
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.6 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE73SoQD1AymFxBOwgRAnYyAJ9rmkF2EOdY17VWClGXYpNthSmcIwCZASVp
 AdAvlt17O/Hi3QZMIyTfhb4=
 =evq6
 -----END PGP SIGNATURE-----
 
 --qlTNgmc+xy1dBmNv--
State-Changed-From-To: open->feedback 
State-Changed-By: schweikh 
State-Changed-When: Sat Aug 31 04:34:12 PDT 2002 
State-Changed-Why:  
Would you mind if I close this PR? There's an easy workaround 
and rc Next Generation will make the point moot, AFAICT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31555 
State-Changed-From-To: feedback->closed 
State-Changed-By: schweikh 
State-Changed-When: Sat Aug 31 13:19:28 PDT 2002 
State-Changed-Why:  
Originator agreed to close this PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31555 
>Unformatted:
