From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 18 18:30:48 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 8312D16A406 for ; Tue, 18 Apr 2006 18:30:48 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id D872443D4C for ; Tue, 18 Apr 2006 18:30:46 +0000 (GMT) (envelope-from zombyfork@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so775745nfc for ; Tue, 18 Apr 2006 11:30:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=jPLDBUUQr9GLBvlaQYJvFzQhrTjqFLoDJUOW01PvNKB/B5bFIorz5qAnriCJO2tCjB7k6CfF4iEkzniz/OObM4qPYQWzXmhsvX7zmIlRDruneYfNp44cWzbRvdnzPRcEu1cb9F9ZPTHOtseh1X8zFjP2jMj4J0t5AwYDulTaZ6w= Received: by 10.49.58.1 with SMTP id l1mr97591nfk; Tue, 18 Apr 2006 11:04:43 -0700 (PDT) Received: by 10.48.217.6 with HTTP; Tue, 18 Apr 2006 11:04:43 -0700 (PDT) Message-ID: <346a80220604181104y63bee2efi426d0a4755be305c@mail.gmail.com> Date: Tue, 18 Apr 2006 14:04:43 -0400 From: "Coleman Kane" To: "M. Warner Losh" In-Reply-To: <346a80220604181102v3597a1edp3e05fa663b87e15c@mail.gmail.com> MIME-Version: 1.0 References: <444515C8.3030406@centtech.com> <20060418165709.GA17705@central.0xfce3.net> <44452532.40703@centtech.com> <20060418.114933.69380798.imp@bsdimp.com> <346a80220604181102v3597a1edp3e05fa663b87e15c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 Reply-To: cokane@cokane.org 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 18:30:48 -0000 On 4/18/06, Coleman Kane wrote: > > On 4/18/06, M. Warner Losh wrote: > > > 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 hav= e > > this > > : >> in your /etc/rc.conf: > > : >> > > : >> rc_fancy=3D"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. > > Also, /bin/sh is used to execute rc NOT /bin/csh. So you are writing in Bourne shell and not C-Shell. -- > coleman kane > > > >