blob: 6da547d2ded12b80d38a7fd4c401c5aa8127e0c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|