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

Eric Bélanger eric at archlinux.org
Fri Oct 7 19:20:49 UTC 2011


    Date: Friday, October 7, 2011 @ 15:20:48
  Author: eric
Revision: 140134

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

Added:
  acpid/repos/extra-i686/PKGBUILD
    (from rev 140133, acpid/trunk/PKGBUILD)
  acpid/repos/extra-i686/acpid
    (from rev 140133, acpid/trunk/acpid)
  acpid/repos/extra-i686/acpid.conf.d
    (from rev 140133, acpid/trunk/acpid.conf.d)
  acpid/repos/extra-i686/anything
    (from rev 140133, acpid/trunk/anything)
  acpid/repos/extra-i686/handler.sh
    (from rev 140133, acpid/trunk/handler.sh)
  acpid/repos/extra-x86_64/PKGBUILD
    (from rev 140133, acpid/trunk/PKGBUILD)
  acpid/repos/extra-x86_64/acpid
    (from rev 140133, acpid/trunk/acpid)
  acpid/repos/extra-x86_64/acpid.conf.d
    (from rev 140133, acpid/trunk/acpid.conf.d)
  acpid/repos/extra-x86_64/anything
    (from rev 140133, acpid/trunk/anything)
  acpid/repos/extra-x86_64/handler.sh
    (from rev 140133, 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          |   74 ++++++++++++-------------
 extra-i686/acpid.conf.d   |   10 +--
 extra-i686/anything       |    6 +-
 extra-i686/handler.sh     |  130 ++++++++++++++++++++++----------------------
 extra-x86_64/PKGBUILD     |   86 ++++++++++++++---------------
 extra-x86_64/acpid        |   74 ++++++++++++-------------
 extra-x86_64/acpid.conf.d |   10 +--
 extra-x86_64/anything     |    6 +-
 extra-x86_64/handler.sh   |  130 ++++++++++++++++++++++----------------------
 10 files changed, 306 insertions(+), 306 deletions(-)

Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD	2011-10-07 19:19:39 UTC (rev 140133)
+++ extra-i686/PKGBUILD	2011-10-07 19:20:48 UTC (rev 140134)
@@ -1,43 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.10
-pkgrel=2
-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')
-source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz"
-        'acpid'
-        'anything'
-        'handler.sh'
-        'acpid.conf.d')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
-
-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
-}
-md5sums=('d5dd88bcfaa4a0bf51905e95115da6df'
-         '955490c4db5233ec44461db694b873a4'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         '24bd717aeb6b628a144b6956ff661ab0'
-         '929c6d2e91295c22ed9ec6212d7eabef')

Copied: acpid/repos/extra-i686/PKGBUILD (from rev 140133, acpid/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer:
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.12
+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=('c5104722f72451f64f893b5541bd9ab4'
+         '955490c4db5233ec44461db694b873a4'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         '24bd717aeb6b628a144b6956ff661ab0'
+         '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-10-07 19:19:39 UTC (rev 140133)
+++ extra-i686/acpid	2011-10-07 19:20:48 UTC (rev 140134)
@@ -1,37 +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
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0

Copied: acpid/repos/extra-i686/acpid (from rev 140133, acpid/trunk/acpid)
===================================================================
--- extra-i686/acpid	                        (rev 0)
+++ extra-i686/acpid	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,37 @@
+#!/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
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"  
+esac
+exit 0

Deleted: extra-i686/acpid.conf.d
===================================================================
--- extra-i686/acpid.conf.d	2011-10-07 19:19:39 UTC (rev 140133)
+++ extra-i686/acpid.conf.d	2011-10-07 19:20:48 UTC (rev 140134)
@@ -1,5 +0,0 @@
-#
-# Arguments to be passed to the acpid daemon
-#
-
-ACPID_ARGS=""

Copied: acpid/repos/extra-i686/acpid.conf.d (from rev 140133, acpid/trunk/acpid.conf.d)
===================================================================
--- extra-i686/acpid.conf.d	                        (rev 0)
+++ extra-i686/acpid.conf.d	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,5 @@
+#
+# Arguments to be passed to the acpid daemon
+#
+
+ACPID_ARGS=""

Deleted: extra-i686/anything
===================================================================
--- extra-i686/anything	2011-10-07 19:19:39 UTC (rev 140133)
+++ extra-i686/anything	2011-10-07 19:20:48 UTC (rev 140134)
@@ -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 140133, acpid/trunk/anything)
===================================================================
--- extra-i686/anything	                        (rev 0)
+++ extra-i686/anything	2011-10-07 19:20:48 UTC (rev 140134)
@@ -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-10-07 19:19:39 UTC (rev 140133)
+++ extra-i686/handler.sh	2011-10-07 19:20:48 UTC (rev 140134)
@@ -1,65 +0,0 @@
-#!/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"
-
-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)
-        #echo "LID switched!">/dev/tty5
-        ;;
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac

Copied: acpid/repos/extra-i686/handler.sh (from rev 140133, acpid/trunk/handler.sh)
===================================================================
--- extra-i686/handler.sh	                        (rev 0)
+++ extra-i686/handler.sh	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,65 @@
+#!/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"
+
+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)
+        #echo "LID switched!">/dev/tty5
+        ;;
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac

Deleted: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2011-10-07 19:19:39 UTC (rev 140133)
+++ extra-x86_64/PKGBUILD	2011-10-07 19:20:48 UTC (rev 140134)
@@ -1,43 +0,0 @@
-# $Id$
-# Maintainer:
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.10
-pkgrel=2
-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')
-source=("http://www.tedfelix.com/linux/$pkgname-$pkgver.tar.gz"
-        'acpid'
-        'anything'
-        'handler.sh'
-        'acpid.conf.d')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything' 'etc/conf.d/acpid')
-
-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
-}
-md5sums=('d5dd88bcfaa4a0bf51905e95115da6df'
-         '955490c4db5233ec44461db694b873a4'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         '24bd717aeb6b628a144b6956ff661ab0'
-         '929c6d2e91295c22ed9ec6212d7eabef')

Copied: acpid/repos/extra-x86_64/PKGBUILD (from rev 140133, acpid/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer:
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.12
+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=('c5104722f72451f64f893b5541bd9ab4'
+         '955490c4db5233ec44461db694b873a4'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         '24bd717aeb6b628a144b6956ff661ab0'
+         '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-10-07 19:19:39 UTC (rev 140133)
+++ extra-x86_64/acpid	2011-10-07 19:20:48 UTC (rev 140134)
@@ -1,37 +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
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0

Copied: acpid/repos/extra-x86_64/acpid (from rev 140133, acpid/trunk/acpid)
===================================================================
--- extra-x86_64/acpid	                        (rev 0)
+++ extra-x86_64/acpid	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,37 @@
+#!/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
+    $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-10-07 19:19:39 UTC (rev 140133)
+++ extra-x86_64/acpid.conf.d	2011-10-07 19:20:48 UTC (rev 140134)
@@ -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 140133, acpid/trunk/acpid.conf.d)
===================================================================
--- extra-x86_64/acpid.conf.d	                        (rev 0)
+++ extra-x86_64/acpid.conf.d	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,5 @@
+#
+# Arguments to be passed to the acpid daemon
+#
+
+ACPID_ARGS=""

Deleted: extra-x86_64/anything
===================================================================
--- extra-x86_64/anything	2011-10-07 19:19:39 UTC (rev 140133)
+++ extra-x86_64/anything	2011-10-07 19:20:48 UTC (rev 140134)
@@ -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 140133, acpid/trunk/anything)
===================================================================
--- extra-x86_64/anything	                        (rev 0)
+++ extra-x86_64/anything	2011-10-07 19:20:48 UTC (rev 140134)
@@ -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-10-07 19:19:39 UTC (rev 140133)
+++ extra-x86_64/handler.sh	2011-10-07 19:20:48 UTC (rev 140134)
@@ -1,65 +0,0 @@
-#!/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"
-
-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)
-        #echo "LID switched!">/dev/tty5
-        ;;
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac

Copied: acpid/repos/extra-x86_64/handler.sh (from rev 140133, acpid/trunk/handler.sh)
===================================================================
--- extra-x86_64/handler.sh	                        (rev 0)
+++ extra-x86_64/handler.sh	2011-10-07 19:20:48 UTC (rev 140134)
@@ -0,0 +1,65 @@
+#!/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"
+
+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)
+        #echo "LID switched!">/dev/tty5
+        ;;
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac




More information about the arch-commits mailing list