[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Making init scripts use dash



On Fri, May 19, 2006 at 04:49:49PM +0200, Olaf van der Spek wrote:
> On 5/19/06, Wouter Verhelst <wouter@debian.org> wrote:
> >On Fri, May 19, 2006 at 05:45:46AM +0200, David Weinehall wrote:
> >> Well, most of those scripts can be fixed quite easily, some require
> >> a bit more work.  I hereby promise to help fixing them to the extent
> >> of my capability.
> >
> >Let's see. The nbd-client and nbd-server initscripts use bash arrays. Do
> >you have an alternative way to implement their current behaviour, so
> >that it would work with dash?
> 
> Don't those scripts use #!/bin/bash?

Of course.

> Why would they have to work with dash?

If the difference in speed is indeed that insane, that's nice.

I've received a bugreport with patch against the nbd packages now which
implement whatever it's doing now with eval rather than bash arrays. Now
I'm not sure whether this is actually going to be any faster (eval might
require more processing time than arrays?), but if it is, and I can find
a sane way to convert my config files from arrays to "regular"
variables, then I'll use that.

Or I might just not bother, and finish nbd 2.9, which has support for
config files in the C bits rather than the initscript. I'll see :)

-- 
Fun will now commence
  -- Seven Of Nine, "Ashes to Ashes", stardate 53679.4



Reply to: