From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 18 18:12:46 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 9D14716A401 for ; Tue, 18 Apr 2006 18:12:46 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93D6843D70 for ; Tue, 18 Apr 2006 18:12:33 +0000 (GMT) (envelope-from zombyfork@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so771920nfc for ; Tue, 18 Apr 2006 11:12:32 -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=LKCh+v6oDI1a9+1nboj6cnqL7LAPXWTGcJiKpSHyJz9CECr8lozcOwIO2DL8bkxlbCgeqKXuwRXvPepGK3CNCJJbE84w6X7GVG8n/yYWMc91yT/eUxntwC+AyTFCSmkaVcX6jcLhXvZd2yBE5j7CElmFUMXs/ei46/VWYZrimQI= Received: by 10.49.68.11 with SMTP id v11mr2441985nfk; Tue, 18 Apr 2006 11:06:26 -0700 (PDT) Received: by 10.48.217.6 with HTTP; Tue, 18 Apr 2006 11:06:26 -0700 (PDT) Message-ID: <346a80220604181106q209d04f8s87c92f0dd3c158fe@mail.gmail.com> Date: Tue, 18 Apr 2006 14:06:26 -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:12:46 -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: > > : > > : 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 > > > Nice work! > > I too noticed the dependence upon wc, printf, expr. I went ahead and > rewrote these into equivalents in native sh. (attaching new diff). > > This diff is against the latest 7-CURRENT rc.subr. I had to manually merg= e > 3 hunks due to some differences. > > -- > coleman kane > I did some ugly-looking loops to build the space-padding expansion. Does anybody know of a better, more elegant way to accomplish the same thing wit= h sh (and/or stuff in /bin,/sbin)? -- coleman