* [acpid] corrected acpi_handler.sh
@ 2003-03-29 11:59 Tomasz Torcz, BG
0 siblings, 0 replies; only message in thread
From: Tomasz Torcz, BG @ 2003-03-29 11:59 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
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-
--
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-29 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-29 11:59 [acpid] corrected acpi_handler.sh Tomasz Torcz, BG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox