]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - debian/smartmontools.postinst
b2fcad00d81ddec32b508fb47d27d3ce8961fe11
[mirror_smartmontools-debian.git] / debian / smartmontools.postinst
1 #!/bin/sh
2 set -e
3
4 # Remove shutdown and reboot links; this init script does not need them.
5 if 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
8 fi
9 if [ -e /etc/rc6.d/K20smartmontools ]; then
10 rm -f /etc/rc6.d/K20smartmontools
11 fi
12 fi
13
14 dpkg-maintscript-helper rm_conffile \
15 /etc/init.d/smartd 6.1+svn3812-1~ smartmontools -- "$@"
16
17 #DEBHELPER#