diff options
author | James Meyer <james.meyer@operamail.com> | 2009-02-19 16:04:26 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-02-19 16:04:26 (GMT) |
commit | 31352df953653df1b5d6f193c3ed192536467b31 (patch) | |
tree | aa279cfd8d32ab1b6e11d45a7c0964705f222338 /abs/core-testing/acpid/handler.sh | |
parent | a6c74e9e0b37d26ba7525d62602b812f7a6db61a (diff) | |
download | linhes_pkgbuild-31352df953653df1b5d6f193c3ed192536467b31.zip linhes_pkgbuild-31352df953653df1b5d6f193c3ed192536467b31.tar.gz linhes_pkgbuild-31352df953653df1b5d6f193c3ed192536467b31.tar.bz2 |
Change handler.sh to call the runit-shutdown scripts directly.
Previously it was failing because of a path issue.
Diffstat (limited to 'abs/core-testing/acpid/handler.sh')
-rwxr-xr-x | abs/core-testing/acpid/handler.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/abs/core-testing/acpid/handler.sh b/abs/core-testing/acpid/handler.sh index ad31d1a..f6b0f9b 100755 --- a/abs/core-testing/acpid/handler.sh +++ b/abs/core-testing/acpid/handler.sh @@ -14,7 +14,10 @@ case "$1" in button/power) #echo "PowerButton pressed!">/dev/tty5 case "$2" in - PWRF) logger "PowerButton pressed: $2" ;; + PWRF) logger "PowerButton pressed: $2" + /sbin/runit-init 0 + /sbin/poweroff + ;; *) logger "ACPI action undefined: $2" ;; esac ;; |