From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 18 17:50:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AF2616A40E for ; Tue, 18 Apr 2006 17:50:18 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F32F43D55 for ; Tue, 18 Apr 2006 17:50:17 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k3IHnUNk082560; Tue, 18 Apr 2006 11:49:30 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 18 Apr 2006 11:49:33 -0600 (MDT) Message-Id: <20060418.114933.69380798.imp@bsdimp.com> To: anderson@centtech.com From: "M. Warner Losh" In-Reply-To: <44452532.40703@centtech.com> References: <444515C8.3030406@centtech.com> <20060418165709.GA17705@central.0xfce3.net> <44452532.40703@centtech.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gbergling@0xfce3.net, freebsd-hackers@freebsd.org Subject: Re: [PATCH] Fancy rc startup style RFC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Apr 2006 17:50:18 -0000 In message: <44452532.40703@centtech.com> Eric Anderson writes: : Gordon Bergling wrote: : > Hi, : > : > * Thus spake Eric Anderson (anderson@centtech.com): : >> I've made a patch to /etc/rc.subr that makes the startup/shutdown rc : >> scripting look similar to other OS's (many different linux distros, : >> HP-UX, etc), but without color. : >> : >> The patch shouldn't break anything, and is only enabled if you have this : >> in your /etc/rc.conf: : >> : >> rc_fancy="YES" : >> : >> Several of the /etc/rc.d/* scripts send output to stdout, so that could : >> be cleaned up a bit if needed, but for now I tried to keep the patch as : >> minimal as possible. : >> : >> This is still a first pass, so please give feedback. : > : > A short try on my notebook shows some errors. : > I don't want to let this email getting too big, so I put the "dmesg -a" : > output online. http://generic.0xfce3.net/dmesg-fancy.txt : > : > BTW, the patch applied cleanly. : : : Thanks for the feedback! Looks like I made an erroneous assumption that : the wc, expr, and printf tools found in /usr/bin and /bin would be : available through boot, but that isn't the case on systems with those : file systems separate from /. I'm not sure how to resolve some of these : issues, since I don't know of a way to do those functions in csh without : them. I'm open to suggestions here from anyone. /bin and /sbin are available through the entire boot. Only things in /usr are suspect because /usr gets mounted early in the boot process, but not as early as /. Warner