]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- really works on old and new acpi subsystem auto/ac/acpid-1_0_2-2_2
authorhavner <havner@pld-linux.org>
Mon, 22 Sep 2003 19:28:41 +0000 (19:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    acpid-powersh_fix.patch -> 1.3

acpid-powersh_fix.patch

index 70da76c63c1898b2215fbcb8c2a4c14d6941bfd2..7956c6d49c24df4a61b45ddf427b1b48ac0831df 100644 (file)
@@ -1,34 +1,28 @@
 diff -urN acpid.orig/samples/acpi_handler.sh acpid-1.0.2/samples/acpi_handler.sh
 --- acpid.orig/samples/acpi_handler.sh 2001-08-13 19:45:25.000000000 +0200
-+++ acpid-1.0.2/samples/acpi_handler.sh        2003-09-22 20:18:12.997078728 +0200
-@@ -7,15 +7,12 @@
- set $*
- case "$1" in
--      button)
--              case "$2" in
--                      power)  /sbin/init 0
--                              ;;
--                      *)      logger "ACPI action $2 is not defined"
--                              ;;
--              esac
-+      button/power)
-+              /sbin/init 0
-+              ;;
-+      button/sleep)
-+              logger "ACPI sleep action on $2 is not defined"
++++ acpid-1.0.2/samples/acpi_handler.sh        2003-09-22 21:07:13.974984824 +0200
+@@ -15,6 +15,14 @@
+                               ;;
+               esac
                ;;
--
++      button)
++              case "$2" in
++                      sleep)  logger "ACPI sleep action on $2 is not defined"
++                              ;;
++                      *)      logger "ACPI action $2 is not defined"
++                      ;;
++              esac
++              ;;
        *)
                logger "ACPI group $1 is not defined"
-               ;;
 diff -urN acpid.orig/samples/sample.conf acpid-1.0.2/samples/sample.conf
 --- acpid.orig/samples/sample.conf     2001-08-16 23:39:00.000000000 +0200
-+++ acpid-1.0.2/samples/sample.conf    2003-09-22 20:20:21.475547032 +0200
++++ acpid-1.0.2/samples/sample.conf    2003-09-22 21:07:26.895020680 +0200
 @@ -1,4 +1,4 @@
  # This is a sample ACPID configuration
  
 -# event=button power.*
 -# action=/usr/local/bin/power.sh "%e"
 +# event=power
-+# action=/usr/sbin/power.sh "%e"
++# action=/usr/sbin/power.sh "`echo "%e" | sed -e "s,\/,\ ,"`"
This page took 0.041019 seconds and 4 git commands to generate.