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

Nico Golde nion at debian.org
Wed Mar 5 17:14:47 UTC 2008


The following commit has been merged in the master branch:
commit 4bc80549f6ecb45a2b645bd83b142482935f133b
Author: Nico Golde <nion at debian.org>
Date:   Wed Mar 5 18:14:53 2008 +0100

    prevent suspend on shutdown, fixing #469505

diff --git a/actions/suspend.sh b/actions/suspend.sh
index 9513dda..de267d2 100755
--- a/actions/suspend.sh
+++ b/actions/suspend.sh
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+if (runlevel | grep -q [06]) || (ps x | grep -q '/sbin/shutdown'); then
+    exit 0
+fi
+
 brn_control=/proc/acpi/asus/brn
 
 brightness=$(cat $brn_control)
diff --git a/debian/changelog b/debian/changelog
index 89f459e..4406fd3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ eeepc-acpi-scripts (1.1) unstable; urgency=low
   * Start aosd_cat in the background and kill aosd_cat before each new call
     to avoid output that it is lagging behind on long key presses.
   * Adding Vcs-Browser and Vcs-Git control fields.
+  * Prevent the system to go into suspend after a lid event if a shutdown
+    is in progress (Closes: #469505).
 
  -- Nico Golde <nion at debian.org>  Sat, 01 Mar 2008 17:11:08 +0100
 

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-devel mailing list