Date: Tue, 18 Apr 2006 14:06:26 -0400 From: "Coleman Kane" <zombyfork@gmail.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: gbergling@0xfce3.net, freebsd-hackers@freebsd.org Subject: Re: [PATCH] Fancy rc startup style RFC Message-ID: <346a80220604181106q209d04f8s87c92f0dd3c158fe@mail.gmail.com> In-Reply-To: <346a80220604181102v3597a1edp3e05fa663b87e15c@mail.gmail.com> References: <444515C8.3030406@centtech.com> <20060418165709.GA17705@central.0xfce3.net> <44452532.40703@centtech.com> <20060418.114933.69380798.imp@bsdimp.com> <346a80220604181102v3597a1edp3e05fa663b87e15c@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/18/06, Coleman Kane <zombyfork@gmail.com> wrote: > > On 4/18/06, M. Warner Losh <imp@bsdimp.com> wrote: > > > In message: <44452532.40703@centtech.com> > > Eric Anderson <anderson@centtech.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?346a80220604181106q209d04f8s87c92f0dd3c158fe>