[arch-commits] Commit in acpid/trunk (PKGBUILD acpid handler.sh)

Eric Bélanger eric at archlinux.org
Wed Nov 23 20:28:40 EST 2011


    Date: Wednesday, November 23, 2011 @ 20:28:40
  Author: eric
Revision: 143247

upgpkg: acpid 2.0.13-1

Upstream update, Fix restart function of daemon script (close FS#26958), Improve button/lid support in handler.sh (close FS#27201)

Modified:
  acpid/trunk/PKGBUILD
  acpid/trunk/acpid
  acpid/trunk/handler.sh

------------+
 PKGBUILD   |    8 ++++----
 acpid      |    1 +
 handler.sh |   15 ++++++++++-----
 3 files changed, 15 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-11-23 21:47:48 UTC (rev 143246)
+++ PKGBUILD	2011-11-24 01:28:40 UTC (rev 143247)
@@ -5,7 +5,7 @@
 # Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
 
 pkgname=acpid
-pkgver=2.0.12
+pkgver=2.0.13
 pkgrel=1
 pkgdesc="A daemon for delivering ACPI power management events with netlink support"
 arch=('i686' 'x86_64')
@@ -19,10 +19,10 @@
         'anything'
         'handler.sh'
         'acpid.conf.d')
-md5sums=('c5104722f72451f64f893b5541bd9ab4'
-         '955490c4db5233ec44461db694b873a4'
+md5sums=('5bbbb9a320192df1cdd8d0e9a0196379'
+         'd69203a032c4583f9abaafcf21a7ed84'
          '2d37b98d6e74bab815604b8b48c6cfd4'
-         '24bd717aeb6b628a144b6956ff661ab0'
+         'd411b758e8531adee191b66bcbc2892d'
          '929c6d2e91295c22ed9ec6212d7eabef')
 
 build() {

Modified: acpid
===================================================================
--- acpid	2011-11-23 21:47:48 UTC (rev 143246)
+++ acpid	2011-11-24 01:28:40 UTC (rev 143247)
@@ -29,6 +29,7 @@
     ;;
   restart)
     $0 stop
+    sleep 1
     $0 start
     ;;
   *)

Modified: handler.sh
===================================================================
--- handler.sh	2011-11-23 21:47:48 UTC (rev 143246)
+++ handler.sh	2011-11-24 01:28:40 UTC (rev 143247)
@@ -1,9 +1,6 @@
 #!/bin/sh
 # Default acpi script that takes an entry for all actions
 
-# NOTE: This is a 2.6-centric script.  If you use 2.4.x, you'll have to
-#       modify it to not use /sys
-
 minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
 maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
 setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
@@ -57,8 +54,16 @@
         esac
         ;;
     button/lid)
-        #echo "LID switched!">/dev/tty5
-        ;;
+       	case "$3" in
+	    close)
+		#echo "LID closed!">/dev/tty5
+		;;
+	    open)
+		#echo "LID opened!">/dev/tty5
+        	;;
+	esac
+	;;
+
     *)
         logger "ACPI group/action undefined: $1 / $2"
         ;;



More information about the arch-commits mailing list