[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.1-29-ge0c4237
Damyan Ivanov
dmn at debian.org
Fri Sep 11 14:43:44 UTC 2009
The following commit has been merged in the master branch:
commit e0c42377ab5e70ddb93d3b537630457c8715cf4f
Author: Damyan Ivanov <dmn at debian.org>
Date: Fri Sep 11 17:40:57 2009 +0300
postinst: remove stray init.d stop symlinks from runlevels 0 1 and 6
fixes insserv warning about discrepancy between LSB init.d headers and real
situation. Thanks to Paul Menzel.
diff --git a/debian/changelog b/debian/changelog
index dd2085e..64284b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ eeepc-acpi-scripts (1.1.3) UNRELEASED; urgency=low
* rules: call dh_installinit with -u'start 20 2 3 4 5 .' to prevent
installing stop init.d symlinks as eeepc-acpi-scripts init.d script
doesn't need to be run during system shutdown
+ * postinst: remove stray init.d stop symlinks from runlevels 0 1 and 6,
+ fixing insserv warning about discrepancy between LSB init.d headers and
+ real situation. Thanks to Paul Menzel.
-- Darren Salt <linux at youmustbejoking.demon.co.uk> Fri, 14 Aug 2009 13:10:21 +0100
diff --git a/debian/postinst b/debian/postinst
index afa43cc..731c06d 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -6,6 +6,19 @@ case "$1" in
configure)
invoke-rc.d acpid restart>/dev/null
/lib/udev/eeepc-acpi-scripts
+
+ # we no longer congigure stop init.d symlinks
+ # but the old ones keep triggering
+ # insserv: warning: current stop runlevel(s) (0 1 6) of script `eeepc-acpi-scripts' overwrites defaults (empty).
+ if dpkg --compare-version "$2" lt "1.1.3~"; then
+ for rl in 0 1 6; do
+ rcd="/etc/rc$rl.d/K02eeepc-acpi-scripts"
+ if [ -L "$rcd" ] && [ "`readlink "$rcd"`" = "../init.d/eeepc-acpi-scripts" ]; then
+ echo "Removing stray '$rcd'"
+ echo rm "$rcd"
+ fi
+ done
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list