summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/acpid/handler.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/acpid/handler.sh')
-rwxr-xr-xabs/core-testing/acpid/handler.sh5
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
;;