]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - debian/smartmontools.postinst
Remove '/var/lib/smartmontools' on purge (Closes: #766145)
[mirror_smartmontools-debian.git] / debian / smartmontools.postinst
CommitLineData
9afe5af0
GI
1#!/bin/sh
2set -e
3
4# Remove shutdown and reboot links; this init script does not need them.
1863f918
JD
5if dpkg --compare-versions "$2" lt "5.38+svn2879-1"; then
6 if [ -e /etc/rc0.d/K20smartmontools ]; then
7 rm -f /etc/rc0.d/K20smartmontools
9afe5af0 8 fi
1863f918
JD
9 if [ -e /etc/rc6.d/K20smartmontools ]; then
10 rm -f /etc/rc6.d/K20smartmontools
11 fi
12fi
9afe5af0 13
fd647e55 14dpkg-maintscript-helper rm_conffile \
1863f918 15 /etc/init.d/smartd 6.1+svn3812-1~ smartmontools -- "$@"
fd647e55 16
9afe5af0 17#DEBHELPER#