Closes: #494951
Thanks: James Westby
# dh_installemacsen
# dh_installpam
# dh_installmime
- dh_installinit
+ dh_installinit -- start 20 2 3 4 5 . stop 20 1 .
dh_installcron
dh_installman
dh_installinfo
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
+# Default-Stop: 1
# Short-Description: SMART monitoring daemon
### END INIT INFO
--- /dev/null
+#!/bin/sh
+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
+ fi
+ if [ -e /etc/rc6.d/K20smartmontools ]; then
+ rm -f /etc/rc6.d/K20smartmontools
+ fi
+fi
+
+#DEBHELPER#