corrected acpi_handler.sh
Hi,
I've corrected acpi_handler.sh to work with 2.4.x and 2.5.x kernels. Name of powerbutton event has changed. My motherboard is Matsonic 7132A, on VIA Apollo Pro+ 133 chipset.
This is my acpi_handler.sh (note, that I've changed powerbutton event in 2.5.x part to suit my needs):
#v+
#!/bin/sh
# Default acpi script that takes an entry for all actions
set $*
case "$1" in
# ACPI in 2.4.x button) case "$2" in power) /sbin/init 0 ;; *) logger "ACPI action $2 is not defined" ;; esac ;; # ACPI in 2.5.x button/power) case "$2" in PWRF) hdparm -W0 /dev/hdd; ifconfig eth0 down; echo 4 > /proc/acpi/sleep; ifconfig eth0 up; ;; *) logger "ACPI action $2 is not defined" ;; esac ;; *) logger "ACPI group $1 / action $2 is not defined" ;;
esac
#v-
Signature · 9 lines
Tomasz Torcz RIP is irrevelant. Spoofing is futile. zdzichu-X3HQ1c18OqI0iLA60pu2Z2ZHpeb/A1Y/@public.gmane.org Your routes will be aggreggated. ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en