Re: Bug#4122: update-rc.d failed
Brian C. White writes ("Bug#4122: update-rc.d failed"):
...
> echo "- Installing 'start' ..."
> update-rc.d genpowerd start 11 1 2 3 4 5
> echo "- Installing 'stop' ..."
> update-rc.d genpowerd stop 99 0
...
> shift: shift count must be <= $#
...
> I could not find any installed packages on my system that use
> the "start" and "stop" commands instead of "defaults".
Hmm. You should have had a usage message instead of the internal
error. This will be fixed in dpkg 1.3.6.
The usage message is rather cryptic, but it does say
] usage: update-rc.d <basename> remove
] update-rc.d <basename> defaults [<cn> | <scn> <kcn>]
] update-rc.d <basename> start|stop <cn> <r> <r> . ...
^
that you need a dot at the end of the argument list.
You should replace your two calls with one:
update-rc.d genpowerd start 11 1 2 3 4 5 . stop 99 0 .
I'll close this bug report now.
Ian.
Reply to: