Remove obsolete files and old upgrade paths for users coming from version prior to wheezy

This commit is contained in:
Laurent Bigonville 2019-07-27 20:19:19 +02:00
parent 9aba586fa8
commit 3115b529b2
15 changed files with 39 additions and 632 deletions

View file

@ -66,29 +66,9 @@ case "$1" in
# ask udev to check for new udev rules
[ -x /etc/init.d/udev ] && pidof systemd-udevd > /dev/null \
&& udevadm trigger --subsystem-match=usb --action=change
# 557178 udevadm trigger --subsystem-match=usb
if dpkg --compare-versions "$2" le "2.6.4-2~" &&
[ -f /etc/init.d/nut ] ; then
if [ "`md5sum /etc/init.d/nut | cut -d ' ' -f 1`" = 72f1dbc6b92cb4407f26605d05b12681 ]; then
rm -f /etc/init.d/nut
else
mv /etc/init.d/nut /etc/init.d/nut.dpkg-old
fi
update-rc.d nut remove >/dev/null
fi
;;
abort-upgrade)
# do nothing
;;
abort-remove)
# do nothing
;;
abort-deconfigure)
abort-upgrade|abort-remove|abort-deconfigure)
# do nothing
;;