#!/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