summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/acpid/files/default.sh-gentoo.patch')
-rw-r--r--sys-power/acpid/files/default.sh-gentoo.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-power/acpid/files/default.sh-gentoo.patch b/sys-power/acpid/files/default.sh-gentoo.patch
new file mode 100644
index 000000000000..6da547d2ded1
--- /dev/null
+++ b/sys-power/acpid/files/default.sh-gentoo.patch
@@ -0,0 +1,27 @@
+--- acpi/default.sh 2003-07-27 19:06:47.000000000 +0200
++++ acpi-gentoo/default.sh 2003-07-27 19:11:45.000000000 +0200
+@@ -3,17 +3,20 @@
+
+ set $*
+
+-case "$1" in
++group=${1/\/*/}
++action=${1/*\//}
++
++case "$group" in
+ button)
+- case "$2" in
++ case "$action" in
+ power) /sbin/init 0
+ ;;
+- *) logger "ACPI action $2 is not defined"
++ *) logger "ACPI action $action is not defined"
+ ;;
+ esac
+ ;;
+
+ *)
+- logger "ACPI group $1 / action $2 is not defined"
++ logger "ACPI group $group / action $action is not defined"
+ ;;
+ esac