]> git.pld-linux.org Git - packages/acpid.git/blob - acpid-powersh_fix.patch
- some acpi doesn't generate PWRF string on 2.4 kernel
[packages/acpid.git] / acpid-powersh_fix.patch
1 diff -urN acpid.orig/samples/acpi_handler.sh acpid-1.0.2/samples/acpi_handler.sh
2 --- acpid.orig/samples/acpi_handler.sh  2001-08-13 19:45:25.000000000 +0200
3 +++ acpid-1.0.2/samples/acpi_handler.sh 2003-09-22 20:18:12.997078728 +0200
4 @@ -7,15 +7,12 @@
5  set $*
6  
7  case "$1" in
8 -       button)
9 -               case "$2" in
10 -                       power)  /sbin/init 0
11 -                               ;;
12 -                       *)      logger "ACPI action $2 is not defined"
13 -                               ;;
14 -               esac
15 +       button/power)
16 +               /sbin/init 0
17 +               ;;
18 +       button/sleep)
19 +               logger "ACPI sleep action on $2 is not defined"
20                 ;;
21 -
22         *)
23                 logger "ACPI group $1 is not defined"
24                 ;;
25 diff -urN acpid.orig/samples/sample.conf acpid-1.0.2/samples/sample.conf
26 --- acpid.orig/samples/sample.conf      2001-08-16 23:39:00.000000000 +0200
27 +++ acpid-1.0.2/samples/sample.conf     2003-09-22 20:20:21.475547032 +0200
28 @@ -1,4 +1,4 @@
29  # This is a sample ACPID configuration
30  
31 -# event=button power.*
32 -# action=/usr/local/bin/power.sh "%e"
33 +# event=power
34 +# action=/usr/sbin/power.sh "%e"
This page took 0.054084 seconds and 3 git commands to generate.