[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. a003008367dc02c38b813c1a074889a4c7602705

Darren Salt linux at youmustbejoking.demon.co.uk
Mon Feb 2 17:49:56 UTC 2009


The following commit has been merged in the master branch:
commit 65f2d9462bf8b8b5237f1d65eada517d767b97c6
Author: Darren Salt <linux at youmustbejoking.demon.co.uk>
Date:   Sat Jan 24 00:07:30 2009 +0000

    Ignore events when shutting down or rebooting.

diff --git a/debian/changelog b/debian/changelog
index 4757fef..88610bf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ eeepc-acpi-scripts (1.0.12) UNRELEASED; urgency=low
     This has a useful side effect: status changes can be displayed even when
     the controlling process is a login manager.
   * Try to use rfkill when toggling wireless & bluetooth.
+  * Ignore events when shutting down or rebooting.
 
  -- Darren Salt <linux at youmustbejoking.demon.co.uk>  Mon, 02 Feb 2009 16:55:55 +0000
 
diff --git a/etc/acpi/actions/hotkey.sh b/etc/acpi/actions/hotkey.sh
index a574911..a7bef3d 100755
--- a/etc/acpi/actions/hotkey.sh
+++ b/etc/acpi/actions/hotkey.sh
@@ -6,6 +6,12 @@ FUNC_LIB=/usr/share/$PKG/functions.sh
 DEFAULT=/etc/default/$PKG
 [ -e $FUNC_LIB ] || exit 0
 
+case $(runlevel) in
+    *0|*6)
+	exit 0
+	;;
+esac
+
 if [ -e "$DEFAULT" ]; then . "$DEFAULT"; fi
 . $FUNC_LIB
 

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list