]> git.pld-linux.org Git - packages/acpid.git/blob - acpid-powersh_fix.patch
7956c6d49c24df4a61b45ddf427b1b48ac0831df
[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 21:07:13.974984824 +0200
4 @@ -15,6 +15,14 @@
5                                 ;;
6                 esac
7                 ;;
8 +       button)
9 +               case "$2" in
10 +                       sleep)  logger "ACPI sleep action on $2 is not defined"
11 +                               ;;
12 +                       *)      logger "ACPI action $2 is not defined"
13 +                       ;;
14 +               esac
15 +               ;;
16  
17         *)
18                 logger "ACPI group $1 is not defined"
19 diff -urN acpid.orig/samples/sample.conf acpid-1.0.2/samples/sample.conf
20 --- acpid.orig/samples/sample.conf      2001-08-16 23:39:00.000000000 +0200
21 +++ acpid-1.0.2/samples/sample.conf     2003-09-22 21:07:26.895020680 +0200
22 @@ -1,4 +1,4 @@
23  # This is a sample ACPID configuration
24  
25 -# event=button power.*
26 -# action=/usr/local/bin/power.sh "%e"
27 +# event=power
28 +# action=/usr/sbin/power.sh "`echo "%e" | sed -e "s,\/,\ ,"`"
This page took 0.563483 seconds and 3 git commands to generate.