On Wed, 2005-04-06 at 11:16 +0200, Michael Gebetsroither wrote:
> * Thomas Hood <[EMAIL PROTECTED]> [050405 21:45]:
> 
> > $ sudo touch /etc/init.d/dummy
> > $ sudo chmod ugo+x /etc/init.d/dummy
> > [EMAIL PROTECTED]:/etc/init.d$ sudo update-rc.d -n dummy start 37 S .
> >  Adding system startup for /etc/init.d/dummy ...
> >    /etc/rcS.d/S37dummy -> ../init.d/dummy
> 
> [EMAIL PROTECTED] ~ # touch /etc/init.d/dummy
> [EMAIL PROTECTED] ~ # chmod ugo+x /etc/init.d/dummy
> [EMAIL PROTECTED] ~ # update-rc.d -n dummy start 37 S .
> sort: read failed: .: Is a directory

I don't understand where that "sort: read failed: .: Is a directory"
comes from. It's definitely not a message from update-rc.d.

Perhaps your shell or something in your environment does this. Maybe zsh
auto-completion or whatever ? Perhaps that messes up the call to
update-rc.d ?

> added the -w switch to the perl skript update-rc.d

What you could do is to add this temporarily to the top of that script:

print "CALLED WITH ARGS: ", join(':', @ARGV), "\n";

.. and see what it prints. If it is something else than
"-n:dummy:start:37:S:." then something is mucking with the command line
options to update-rc.d before it is even called.

Mike.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to