20 lines
280 B
Bash
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
|