[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.5-89-gb344aec
Luca Niccoli
lultimouomo at gmail.com
Sun Mar 6 19:47:17 UTC 2011
The following commit has been merged in the master branch:
commit b344aecf455fae6be88865579aabccf2e11c4e2f
Author: Luca Niccoli <lultimouomo at gmail.com>
Date: Sun Mar 6 20:46:45 2011 +0100
Check if acpid can be restarted before doing it at purge time.
Signed-off-by: Luca Niccoli <lultimouomo at gmail.com>
diff --git a/debian/changelog b/debian/changelog
index 5fa23cf..83e590e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ eeepc-acpi-scripts (1.1.12) UNRELEASED; urgency=low
* Fix DBus notifications.
* Notify WiFi toggling.
* Wrap around button events if eeepc_wmi is loaded.
+ * Check if acpid can be restarted before doing it at purge time.
-- Ben Armstrong <synrg at sanctuary.nslug.ns.ca> Sun, 14 Nov 2010 10:15:07 -0400
diff --git a/debian/postrm b/debian/postrm
index 5a45419..27b2b14 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -15,7 +15,12 @@ case "$1" in
;;
purge)
- invoke-rc.d acpid restart>/dev/null
+ invoke-rc.d --query acpid restart 2>/dev/null && ret = $? || ret=$?
+ case $ret in
+ 0|104|105|106)
+ invoke-rc.d acpid restart>/dev/null
+ ;;
+ esac
rm -f /var/lib/eeepc-acpi-scripts/cpufv
;;
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list