]> git.proxmox.com Git - mirror_smartmontools-debian.git/commitdiff
Removed stop links from rc0 and rc6
authorGiuseppe Iuculano <giuseppe@iuculano.it>
Sun, 30 Aug 2009 21:32:45 +0000 (23:32 +0200)
committerGiuseppe Iuculano <giuseppe@iuculano.it>
Sun, 30 Aug 2009 21:32:45 +0000 (23:32 +0200)
Closes: #494951
Thanks: James Westby

debian/rules
debian/smartmontools.init
debian/smartmontools.postinst [new file with mode: 0644]

index 00908b14a6d6dfa8e295d7fd43cb7fdea00240d3..5075d61298a1625132b027605dcae6b742193aa8 100755 (executable)
@@ -111,7 +111,7 @@ binary-arch: build install
 #      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
index 6147035dae69af9c724e2346e5e75d4c2bdf6782..ae2da41f9581614904aa8b05d86c156b238dc0b6 100644 (file)
@@ -12,7 +12,7 @@
 # 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
 
diff --git a/debian/smartmontools.postinst b/debian/smartmontools.postinst
new file mode 100644 (file)
index 0000000..dc3492b
--- /dev/null
@@ -0,0 +1,14 @@
+#!/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#