* giggz <giggzou...@gmail.com> [20091122 10:48]:

> During the upgrade of cpufrequtils an error occurs. It tries to remove 
> /etc/rc0.d/K20cpufrequtils. But the file doesn't exist. On my SID I
> have :
> /etc/rc0.d/K01cpufrequtils which is link to ../init.d/cpufrequtils

Quoting cpufrequtils.postinst from cpufrequtils (006-2):

[...]
        # Remove unused stop scripts in /etc/rc[016].d
        # The stop action does nothing anyway and the were
        # not created for a while. Unfortunately they have never
        # been removed after the postinst script stopped creating
        # them.
        # Make sure they are not there.
        for i in 0 1 6 ; do
                link="/etc/rc$i.d/K20cpufrequtils"
                [ -f $link ] && rm $link
        done
[...]

Notes:

* the -f should be a -L
* the code doesn't check whether /etc/rc$i.d/K20cpufrequtils points
  to the original cpufrequtils script (so ignoring any possible
  user related changes)
* the code doesn't work for users that don't use sysv-rc at all
* why not just use update-rc.d?

regards,
-mika-

Attachment: signature.asc
Description: Digital signature

Reply via email to