[arch-commits] Commit in acpid/repos (20 files)

Eric Bélanger eric at archlinux.org
Sun Dec 18 19:59:27 UTC 2011


    Date: Sunday, December 18, 2011 @ 14:59:26
  Author: eric
Revision: 145167

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  acpid/repos/extra-i686/PKGBUILD
    (from rev 145166, acpid/trunk/PKGBUILD)
  acpid/repos/extra-i686/acpid
    (from rev 145166, acpid/trunk/acpid)
  acpid/repos/extra-i686/acpid.conf.d
    (from rev 145166, acpid/trunk/acpid.conf.d)
  acpid/repos/extra-i686/anything
    (from rev 145166, acpid/trunk/anything)
  acpid/repos/extra-i686/handler.sh
    (from rev 145166, acpid/trunk/handler.sh)
  acpid/repos/extra-x86_64/PKGBUILD
    (from rev 145166, acpid/trunk/PKGBUILD)
  acpid/repos/extra-x86_64/acpid
    (from rev 145166, acpid/trunk/acpid)
  acpid/repos/extra-x86_64/acpid.conf.d
    (from rev 145166, acpid/trunk/acpid.conf.d)
  acpid/repos/extra-x86_64/anything
    (from rev 145166, acpid/trunk/anything)
  acpid/repos/extra-x86_64/handler.sh
    (from rev 145166, acpid/trunk/handler.sh)
Deleted:
  acpid/repos/extra-i686/PKGBUILD
  acpid/repos/extra-i686/acpid
  acpid/repos/extra-i686/acpid.conf.d
  acpid/repos/extra-i686/anything
  acpid/repos/extra-i686/handler.sh
  acpid/repos/extra-x86_64/PKGBUILD
  acpid/repos/extra-x86_64/acpid
  acpid/repos/extra-x86_64/acpid.conf.d
  acpid/repos/extra-x86_64/anything
  acpid/repos/extra-x86_64/handler.sh

---------------------------+
 extra-i686/PKGBUILD       |   86 +++++++++++++--------------
 extra-i686/acpid          |   76 +++++++++++------------
 extra-i686/acpid.conf.d   |   10 +--
 extra-i686/anything       |    6 -
 extra-i686/handler.sh     |  140 ++++++++++++++++++++++----------------------
 extra-x86_64/PKGBUILD     |   86 +++++++++++++--------------
 extra-x86_64/acpid        |   76 +++++++++++------------
 extra-x86_64/acpid.conf.d |   10 +--
 extra-x86_64/anything     |    6 -
 extra-x86_64/handler.sh   |  140 ++++++++++++++++++++++----------------------
 10 files changed, 318 insertions(+), 318 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-i686/PKGBUILD	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,43 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.13
-pkgrel=1
-pkgdesc="A daemon for delivering ACPI power management events with netlink support"
-arch=('i686' 'x86_64')
-url="http://tedfelix.com/linux/acpid-netlink.html"
-license=('GPL')
-depends=('bash')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
-source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz"
-        'acpid'
-        'anything'
-        'handler.sh'
-        'acpid.conf.d')
-md5sums=('5bbbb9a320192df1cdd8d0e9a0196379'
-         'd69203a032c4583f9abaafcf21a7ed84'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         'd411b758e8531adee191b66bcbc2892d'
-         '929c6d2e91295c22ed9ec6212d7eabef')
-
-build() {
-  cd "${srcdir}"/$pkgname-$pkgver
-  make
-}
-
-package() {
-  cd "${srcdir}"/$pkgname-$pkgver
-  make DESTDIR="${pkgdir}" install
-
-  install -Dm755 "$srcdir/acpid" "$pkgdir/etc/rc.d/acpid"
-  install -Dm644 "$srcdir/anything" "$pkgdir/etc/acpi/events/anything"
-  install -Dm755 "$srcdir/handler.sh" "$pkgdir/etc/acpi/handler.sh"
-  install -Dm644 "$srcdir/acpid.conf.d" "$pkgdir/etc/conf.d/acpid"
-
-  chmod 755 "${pkgdir}"/usr/sbin/acpid
-}

Copied: acpid/repos/extra-i686/PKGBUILD (from rev 145166, acpid/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer:
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.14
+pkgrel=1
+pkgdesc="A daemon for delivering ACPI power management events with netlink support"
+arch=('i686' 'x86_64')
+url="http://tedfelix.com/linux/acpid-netlink.html"
+license=('GPL')
+depends=('bash')
+replaces=('acpid2')
+backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
+source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz"
+        'acpid'
+        'anything'
+        'handler.sh'
+        'acpid.conf.d')
+md5sums=('14fc1eabc3489f3ded9347fcd55f158a'
+         'd69203a032c4583f9abaafcf21a7ed84'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         'd411b758e8531adee191b66bcbc2892d'
+         '929c6d2e91295c22ed9ec6212d7eabef')
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  make
+}
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm755 "$srcdir/acpid" "$pkgdir/etc/rc.d/acpid"
+  install -Dm644 "$srcdir/anything" "$pkgdir/etc/acpi/events/anything"
+  install -Dm755 "$srcdir/handler.sh" "$pkgdir/etc/acpi/handler.sh"
+  install -Dm644 "$srcdir/acpid.conf.d" "$pkgdir/etc/conf.d/acpid"
+
+  chmod 755 "${pkgdir}"/usr/sbin/acpid
+}

Deleted: extra-i686/acpid
===================================================================
--- extra-i686/acpid	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-i686/acpid	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-[ -f /etc/conf.d/acpid ] && . /etc/conf.d/acpid
-
-PID=`pidof -o %PPID /usr/sbin/acpid`
-case "$1" in
-  start)
-    stat_busy "Starting acpid"
-    [ -z "$PID" ] && /usr/sbin/acpid $ACPID_ARGS
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon acpid
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping acpid"
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon acpid
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0

Copied: acpid/repos/extra-i686/acpid (from rev 145166, acpid/trunk/acpid)
===================================================================
--- extra-i686/acpid	                        (rev 0)
+++ extra-i686/acpid	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/acpid ] && . /etc/conf.d/acpid
+
+PID=`pidof -o %PPID /usr/sbin/acpid`
+case "$1" in
+  start)
+    stat_busy "Starting acpid"
+    [ -z "$PID" ] && /usr/sbin/acpid $ACPID_ARGS
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon acpid
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping acpid"
+    [ ! -z "$PID" ] && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon acpid
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Deleted: extra-i686/acpid.conf.d
===================================================================
--- extra-i686/acpid.conf.d	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-i686/acpid.conf.d	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,5 +0,0 @@
-#
-# Arguments to be passed to the acpid daemon
-#
-
-ACPID_ARGS=""

Copied: acpid/repos/extra-i686/acpid.conf.d (from rev 145166, acpid/trunk/acpid.conf.d)
===================================================================
--- extra-i686/acpid.conf.d	                        (rev 0)
+++ extra-i686/acpid.conf.d	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,5 @@
+#
+# Arguments to be passed to the acpid daemon
+#
+
+ACPID_ARGS=""

Deleted: extra-i686/anything
===================================================================
--- extra-i686/anything	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-i686/anything	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,3 +0,0 @@
-# Pass all events to our one handler script
-event=.*
-action=/etc/acpi/handler.sh %e

Copied: acpid/repos/extra-i686/anything (from rev 145166, acpid/trunk/anything)
===================================================================
--- extra-i686/anything	                        (rev 0)
+++ extra-i686/anything	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,3 @@
+# Pass all events to our one handler script
+event=.*
+action=/etc/acpi/handler.sh %e

Deleted: extra-i686/handler.sh
===================================================================
--- extra-i686/handler.sh	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-i686/handler.sh	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,70 +0,0 @@
-#!/bin/sh
-# Default acpi script that takes an entry for all actions
-
-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"
-
-set $*
-
-case "$1" in
-    button/power)
-        #echo "PowerButton pressed!">/dev/tty5
-        case "$2" in
-            PBTN|PWRF)  logger "PowerButton pressed: $2" ;;
-            *)          logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/sleep)
-        case "$2" in
-            SLPB)   echo -n mem >/sys/power/state ;;
-            *)      logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    ac_adapter)
-        case "$2" in
-            AC|ACAD|ADP0)
-                case "$4" in
-                    00000000)
-                        echo -n $minspeed >$setspeed
-                        #/etc/laptop-mode/laptop-mode start
-                    ;;
-                    00000001)
-                        echo -n $maxspeed >$setspeed
-                        #/etc/laptop-mode/laptop-mode stop
-                    ;;
-                esac
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    battery)
-        case "$2" in
-            BAT0)
-                case "$4" in
-                    00000000)   #echo "offline" >/dev/tty5
-                    ;;
-                    00000001)   #echo "online"  >/dev/tty5
-                    ;;
-                esac
-                ;;
-            CPU0)	
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/lid)
-       	case "$3" in
-	    close)
-		#echo "LID closed!">/dev/tty5
-		;;
-	    open)
-		#echo "LID opened!">/dev/tty5
-        	;;
-	esac
-	;;
-
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac

Copied: acpid/repos/extra-i686/handler.sh (from rev 145166, acpid/trunk/handler.sh)
===================================================================
--- extra-i686/handler.sh	                        (rev 0)
+++ extra-i686/handler.sh	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,70 @@
+#!/bin/sh
+# Default acpi script that takes an entry for all actions
+
+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"
+
+set $*
+
+case "$1" in
+    button/power)
+        #echo "PowerButton pressed!">/dev/tty5
+        case "$2" in
+            PBTN|PWRF)  logger "PowerButton pressed: $2" ;;
+            *)          logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/sleep)
+        case "$2" in
+            SLPB)   echo -n mem >/sys/power/state ;;
+            *)      logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    ac_adapter)
+        case "$2" in
+            AC|ACAD|ADP0)
+                case "$4" in
+                    00000000)
+                        echo -n $minspeed >$setspeed
+                        #/etc/laptop-mode/laptop-mode start
+                    ;;
+                    00000001)
+                        echo -n $maxspeed >$setspeed
+                        #/etc/laptop-mode/laptop-mode stop
+                    ;;
+                esac
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    battery)
+        case "$2" in
+            BAT0)
+                case "$4" in
+                    00000000)   #echo "offline" >/dev/tty5
+                    ;;
+                    00000001)   #echo "online"  >/dev/tty5
+                    ;;
+                esac
+                ;;
+            CPU0)	
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/lid)
+       	case "$3" in
+	    close)
+		#echo "LID closed!">/dev/tty5
+		;;
+	    open)
+		#echo "LID opened!">/dev/tty5
+        	;;
+	esac
+	;;
+
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-x86_64/PKGBUILD	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,43 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.13
-pkgrel=1
-pkgdesc="A daemon for delivering ACPI power management events with netlink support"
-arch=('i686' 'x86_64')
-url="http://tedfelix.com/linux/acpid-netlink.html"
-license=('GPL')
-depends=('bash')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
-source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz"
-        'acpid'
-        'anything'
-        'handler.sh'
-        'acpid.conf.d')
-md5sums=('5bbbb9a320192df1cdd8d0e9a0196379'
-         'd69203a032c4583f9abaafcf21a7ed84'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         'd411b758e8531adee191b66bcbc2892d'
-         '929c6d2e91295c22ed9ec6212d7eabef')
-
-build() {
-  cd "${srcdir}"/$pkgname-$pkgver
-  make
-}
-
-package() {
-  cd "${srcdir}"/$pkgname-$pkgver
-  make DESTDIR="${pkgdir}" install
-
-  install -Dm755 "$srcdir/acpid" "$pkgdir/etc/rc.d/acpid"
-  install -Dm644 "$srcdir/anything" "$pkgdir/etc/acpi/events/anything"
-  install -Dm755 "$srcdir/handler.sh" "$pkgdir/etc/acpi/handler.sh"
-  install -Dm644 "$srcdir/acpid.conf.d" "$pkgdir/etc/conf.d/acpid"
-
-  chmod 755 "${pkgdir}"/usr/sbin/acpid
-}

Copied: acpid/repos/extra-x86_64/PKGBUILD (from rev 145166, acpid/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer:
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.14
+pkgrel=1
+pkgdesc="A daemon for delivering ACPI power management events with netlink support"
+arch=('i686' 'x86_64')
+url="http://tedfelix.com/linux/acpid-netlink.html"
+license=('GPL')
+depends=('bash')
+replaces=('acpid2')
+backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
+source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz"
+        'acpid'
+        'anything'
+        'handler.sh'
+        'acpid.conf.d')
+md5sums=('14fc1eabc3489f3ded9347fcd55f158a'
+         'd69203a032c4583f9abaafcf21a7ed84'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         'd411b758e8531adee191b66bcbc2892d'
+         '929c6d2e91295c22ed9ec6212d7eabef')
+
+build() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  make
+}
+
+package() {
+  cd "${srcdir}"/$pkgname-$pkgver
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm755 "$srcdir/acpid" "$pkgdir/etc/rc.d/acpid"
+  install -Dm644 "$srcdir/anything" "$pkgdir/etc/acpi/events/anything"
+  install -Dm755 "$srcdir/handler.sh" "$pkgdir/etc/acpi/handler.sh"
+  install -Dm644 "$srcdir/acpid.conf.d" "$pkgdir/etc/conf.d/acpid"
+
+  chmod 755 "${pkgdir}"/usr/sbin/acpid
+}

Deleted: extra-x86_64/acpid
===================================================================
--- extra-x86_64/acpid	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-x86_64/acpid	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-[ -f /etc/conf.d/acpid ] && . /etc/conf.d/acpid
-
-PID=`pidof -o %PPID /usr/sbin/acpid`
-case "$1" in
-  start)
-    stat_busy "Starting acpid"
-    [ -z "$PID" ] && /usr/sbin/acpid $ACPID_ARGS
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon acpid
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping acpid"
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      rm_daemon acpid
-      stat_done
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 1
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0

Copied: acpid/repos/extra-x86_64/acpid (from rev 145166, acpid/trunk/acpid)
===================================================================
--- extra-x86_64/acpid	                        (rev 0)
+++ extra-x86_64/acpid	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f /etc/conf.d/acpid ] && . /etc/conf.d/acpid
+
+PID=`pidof -o %PPID /usr/sbin/acpid`
+case "$1" in
+  start)
+    stat_busy "Starting acpid"
+    [ -z "$PID" ] && /usr/sbin/acpid $ACPID_ARGS
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon acpid
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping acpid"
+    [ ! -z "$PID" ] && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon acpid
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Deleted: extra-x86_64/acpid.conf.d
===================================================================
--- extra-x86_64/acpid.conf.d	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-x86_64/acpid.conf.d	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,5 +0,0 @@
-#
-# Arguments to be passed to the acpid daemon
-#
-
-ACPID_ARGS=""

Copied: acpid/repos/extra-x86_64/acpid.conf.d (from rev 145166, acpid/trunk/acpid.conf.d)
===================================================================
--- extra-x86_64/acpid.conf.d	                        (rev 0)
+++ extra-x86_64/acpid.conf.d	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,5 @@
+#
+# Arguments to be passed to the acpid daemon
+#
+
+ACPID_ARGS=""

Deleted: extra-x86_64/anything
===================================================================
--- extra-x86_64/anything	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-x86_64/anything	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,3 +0,0 @@
-# Pass all events to our one handler script
-event=.*
-action=/etc/acpi/handler.sh %e

Copied: acpid/repos/extra-x86_64/anything (from rev 145166, acpid/trunk/anything)
===================================================================
--- extra-x86_64/anything	                        (rev 0)
+++ extra-x86_64/anything	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,3 @@
+# Pass all events to our one handler script
+event=.*
+action=/etc/acpi/handler.sh %e

Deleted: extra-x86_64/handler.sh
===================================================================
--- extra-x86_64/handler.sh	2011-12-18 19:58:40 UTC (rev 145166)
+++ extra-x86_64/handler.sh	2011-12-18 19:59:26 UTC (rev 145167)
@@ -1,70 +0,0 @@
-#!/bin/sh
-# Default acpi script that takes an entry for all actions
-
-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"
-
-set $*
-
-case "$1" in
-    button/power)
-        #echo "PowerButton pressed!">/dev/tty5
-        case "$2" in
-            PBTN|PWRF)  logger "PowerButton pressed: $2" ;;
-            *)          logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/sleep)
-        case "$2" in
-            SLPB)   echo -n mem >/sys/power/state ;;
-            *)      logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    ac_adapter)
-        case "$2" in
-            AC|ACAD|ADP0)
-                case "$4" in
-                    00000000)
-                        echo -n $minspeed >$setspeed
-                        #/etc/laptop-mode/laptop-mode start
-                    ;;
-                    00000001)
-                        echo -n $maxspeed >$setspeed
-                        #/etc/laptop-mode/laptop-mode stop
-                    ;;
-                esac
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    battery)
-        case "$2" in
-            BAT0)
-                case "$4" in
-                    00000000)   #echo "offline" >/dev/tty5
-                    ;;
-                    00000001)   #echo "online"  >/dev/tty5
-                    ;;
-                esac
-                ;;
-            CPU0)	
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/lid)
-       	case "$3" in
-	    close)
-		#echo "LID closed!">/dev/tty5
-		;;
-	    open)
-		#echo "LID opened!">/dev/tty5
-        	;;
-	esac
-	;;
-
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac

Copied: acpid/repos/extra-x86_64/handler.sh (from rev 145166, acpid/trunk/handler.sh)
===================================================================
--- extra-x86_64/handler.sh	                        (rev 0)
+++ extra-x86_64/handler.sh	2011-12-18 19:59:26 UTC (rev 145167)
@@ -0,0 +1,70 @@
+#!/bin/sh
+# Default acpi script that takes an entry for all actions
+
+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"
+
+set $*
+
+case "$1" in
+    button/power)
+        #echo "PowerButton pressed!">/dev/tty5
+        case "$2" in
+            PBTN|PWRF)  logger "PowerButton pressed: $2" ;;
+            *)          logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/sleep)
+        case "$2" in
+            SLPB)   echo -n mem >/sys/power/state ;;
+            *)      logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    ac_adapter)
+        case "$2" in
+            AC|ACAD|ADP0)
+                case "$4" in
+                    00000000)
+                        echo -n $minspeed >$setspeed
+                        #/etc/laptop-mode/laptop-mode start
+                    ;;
+                    00000001)
+                        echo -n $maxspeed >$setspeed
+                        #/etc/laptop-mode/laptop-mode stop
+                    ;;
+                esac
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    battery)
+        case "$2" in
+            BAT0)
+                case "$4" in
+                    00000000)   #echo "offline" >/dev/tty5
+                    ;;
+                    00000001)   #echo "online"  >/dev/tty5
+                    ;;
+                esac
+                ;;
+            CPU0)	
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/lid)
+       	case "$3" in
+	    close)
+		#echo "LID closed!">/dev/tty5
+		;;
+	    open)
+		#echo "LID opened!">/dev/tty5
+        	;;
+	esac
+	;;
+
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac




More information about the arch-commits mailing list