blob: 65e4ee56874c3809485393c28b7250dec3308231 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
# Default acpi script that takes an entry for all actions
set $*
EVENT=`echo $1 |cut -d/ -f1`
ACTION=`echo $1|cut -d/ -f2`
#echo $EVENT
#echo $ACTION
case "$EVENT" in
button)
case "$ACTION" in
power)
echo Please wait while the system powers off | /usr/local/bin/putfifo /tmp/onscreen &
xsay "Please wait while the system powers off" &
/sbin/init 0
;;
*) logger "ACPI action $2 is not defined"
;;
esac
;;
*) logger "ACPI group $1 / action $2 is not defined"
;;
esac
|