contrib/acpid/default.sh
2006-11-13 22:01:22 +02:00

20 lines
280 B
Bash

#!/bin/sh
# Default acpi script that takes an entry for all actions
set $*
case "$1" in
button/power)
case "$2" in
PWRF) /sbin/init 0
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*)
logger "ACPI group $1 / action $2 is not defined"
;;
esac