X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=debian%2Fsmartmontools.postinst;h=1297c69c64713e0f88f1b30b1f575d2dc0ca544e;hb=bcade6c14a06cfc842b41df91fdc5b9577cd68f1;hp=dc3492bc8951f27bb3383d3815b5d0072229e33d;hpb=bf02af27c92f35a540a6f452a8b5a7ec4d7e9623;p=mirror_smartmontools-debian.git diff --git a/debian/smartmontools.postinst b/debian/smartmontools.postinst index dc3492b..1297c69 100644 --- a/debian/smartmontools.postinst +++ b/debian/smartmontools.postinst @@ -2,13 +2,20 @@ set -e # Remove shutdown and reboot links; this init script does not need them. -if dpkg --compare-versions "$2" lt "5.38+svn2879-1"; then - if [ -e /etc/rc0.d/K20smartmontools ]; then - rm -f /etc/rc0.d/K20smartmontools +case "$1" in + configure) + if dpkg --compare-versions "$2" lt "5.38+svn2879-1"; then + if [ -e /etc/rc0.d/K20smartmontools ]; then + rm -f /etc/rc0.d/K20smartmontools + fi + if [ -e /etc/rc6.d/K20smartmontools ]; then + rm -f /etc/rc6.d/K20smartmontools + fi fi - if [ -e /etc/rc6.d/K20smartmontools ]; then - rm -f /etc/rc6.d/K20smartmontools - fi -fi + ;; +esac + +dpkg-maintscript-helper rm_conffile \ + /etc/init.d/smartd 6.1+svn3812-1~ smartmontools -- "$@" #DEBHELPER#