From: "Tomasz Torcz, BG" <zdzichu-YxaM2a6SwlU@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [acpid] corrected acpi_handler.sh
Date: Sat, 29 Mar 2003 12:59:10 +0100 [thread overview]
Message-ID: <20030329115910.GA10257@irc.pl> (raw)
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
reply other threads:[~2003-03-29 11:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030329115910.GA10257@irc.pl \
--to=zdzichu-yxam2a6swlu@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox