[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 5d357841b10e9bf9fec5ca374a62c9cbba0da268

Damyan Ivanov dam at modsoftsys.com
Wed Mar 5 20:54:13 UTC 2008


The following commit has been merged in the master branch:
commit 5d357841b10e9bf9fec5ca374a62c9cbba0da268
Author: Damyan Ivanov <dam at modsoftsys.com>
Date:   Wed Mar 5 22:53:38 2008 +0200

    * Make actions do nothing when package is removed

diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index 168295a..41ad3e0 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+# do nothing if package is removed
+[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+
 . /etc/default/eeepc-acpi-scripts
 code=$3
 
diff --git a/actions/suspend.sh b/actions/suspend.sh
index de267d2..9a31c0a 100755
--- a/actions/suspend.sh
+++ b/actions/suspend.sh
@@ -1,5 +1,8 @@
 #!/bin/sh
 
+# do nothing if package is removed
+[ -d /usr/share/doc/eeepc-acpi-scripts ] || exit 0
+
 if (runlevel | grep -q [06]) || (ps x | grep -q '/sbin/shutdown'); then
     exit 0
 fi
diff --git a/debian/changelog b/debian/changelog
index 4406fd3..f8cbf99 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,9 @@ eeepc-acpi-scripts (1.1) unstable; urgency=low
   * Prevent the system to go into suspend after a lid event if a shutdown
     is in progress (Closes: #469505).
 
+  [ Damyan Ivanov ]
+  * Make actions do nothing when package is removed
+
  -- Nico Golde <nion at debian.org>  Sat, 01 Mar 2008 17:11:08 +0100
 
 eeepc-acpi-scripts (1.0) unstable; urgency=low

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list