contrib/acpid/default.sh

20 lines
280 B
Bash
Raw Normal View History

2006-11-13 21:01:22 +01:00
#!/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