[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.1-30-g3c35816
Damyan Ivanov
dmn at debian.org
Mon Sep 14 11:09:36 UTC 2009
The following commit has been merged in the master branch:
commit 3c3581678793290831936fe510829ac3a5d5af7f
Author: Damyan Ivanov <dmn at debian.org>
Date: Mon Sep 14 14:07:38 2009 +0300
rework the fix for the stray init.d stop links at levels 0, 1 and 6
Now simply remove all rc.d config and let debhelper stup re-install it again.
Since it is told not to set up stop scripts, we shall be fine.
Thanks to Raphael Geissert
diff --git a/debian/changelog b/debian/changelog
index 64284b1..faa0fcf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,9 +8,10 @@ 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,
+ * postinst: remove and re-install rc.d configuration
fixing insserv warning about discrepancy between LSB init.d headers and
- real situation. Thanks to Paul Menzel.
+ the real situation. Thanks to Paul Menzel for reporting and Raphael
+ Geissert for the fix.
-- 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 731c06d..9938305 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -11,13 +11,8 @@ case "$1" in
# 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
+ echo "Removing stray rc.d stop links"
+ update-rc.d -f eeepc-acpi-scripts remove
fi
;;
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list