diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-08 17:08:28 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-08 17:08:28 (GMT) |
commit | c38715641e214272ad7dc6d495edd29940366e7f (patch) | |
tree | 9dcd507543e67458d98fa7462f62026041524047 /abs/core-testing/acpid/acpi_handler.sh | |
parent | 3d91b06198a56b6579cb0bd77de65f5908571b87 (diff) | |
download | linhes_pkgbuild-c38715641e214272ad7dc6d495edd29940366e7f.zip linhes_pkgbuild-c38715641e214272ad7dc6d495edd29940366e7f.tar.gz linhes_pkgbuild-c38715641e214272ad7dc6d495edd29940366e7f.tar.bz2 |
packages that will be needed in the future.
This is the initial merge of packages from MythVantage that are not MythVantage specific.
Diffstat (limited to 'abs/core-testing/acpid/acpi_handler.sh')
-rwxr-xr-x | abs/core-testing/acpid/acpi_handler.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/core-testing/acpid/acpi_handler.sh b/abs/core-testing/acpid/acpi_handler.sh new file mode 100755 index 0000000..65e4ee5 --- /dev/null +++ b/abs/core-testing/acpid/acpi_handler.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# Default acpi script that takes an entry for all actions +set $* +EVENT=`echo $1 |cut -d/ -f1` +ACTION=`echo $1|cut -d/ -f2` + +#echo $EVENT +#echo $ACTION +case "$EVENT" in + button) + case "$ACTION" in + power) + echo Please wait while the system powers off | /usr/local/bin/putfifo /tmp/onscreen & + xsay "Please wait while the system powers off" & + /sbin/init 0 + ;; + *) logger "ACPI action $2 is not defined" + ;; + esac + ;; + *) logger "ACPI group $1 / action $2 is not defined" + ;; +esac |