summaryrefslogtreecommitdiff
path: root/source/a/acpid/acpi_handler.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/acpid/acpi_handler.sh')
-rw-r--r--source/a/acpid/acpi_handler.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/a/acpid/acpi_handler.sh b/source/a/acpid/acpi_handler.sh
new file mode 100644
index 00000000..386fa8d0
--- /dev/null
+++ b/source/a/acpid/acpi_handler.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Default acpi script that takes an entry for all actions
+
+IFS=${IFS}/
+set $@
+
+case "$1" in
+ button)
+ case "$2" in
+ power) /sbin/init 0
+ ;;
+ *) logger "ACPI action $2 is not defined"
+ ;;
+ esac
+ ;;
+ *)
+ logger "ACPI group $1 / action $2 is not defined"
+ ;;
+esac