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

Sébastien Luttringer seblu at archlinux.org
Sun Nov 23 00:07:05 UTC 2014


    Date: Sunday, November 23, 2014 @ 01:07:04
  Author: seblu
Revision: 122968

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

Added:
  acpid/repos/community-i686/PKGBUILD
    (from rev 122967, acpid/trunk/PKGBUILD)
  acpid/repos/community-i686/acpid.service
    (from rev 122967, acpid/trunk/acpid.service)
  acpid/repos/community-i686/acpid.socket
    (from rev 122967, acpid/trunk/acpid.socket)
  acpid/repos/community-i686/anything
    (from rev 122967, acpid/trunk/anything)
  acpid/repos/community-i686/handler.sh
    (from rev 122967, acpid/trunk/handler.sh)
  acpid/repos/community-x86_64/PKGBUILD
    (from rev 122967, acpid/trunk/PKGBUILD)
  acpid/repos/community-x86_64/acpid.service
    (from rev 122967, acpid/trunk/acpid.service)
  acpid/repos/community-x86_64/acpid.socket
    (from rev 122967, acpid/trunk/acpid.socket)
  acpid/repos/community-x86_64/anything
    (from rev 122967, acpid/trunk/anything)
  acpid/repos/community-x86_64/handler.sh
    (from rev 122967, acpid/trunk/handler.sh)
Deleted:
  acpid/repos/community-i686/PKGBUILD
  acpid/repos/community-i686/acpid.service
  acpid/repos/community-i686/acpid.socket
  acpid/repos/community-i686/anything
  acpid/repos/community-i686/handler.sh
  acpid/repos/community-x86_64/PKGBUILD
  acpid/repos/community-x86_64/acpid.service
  acpid/repos/community-x86_64/acpid.socket
  acpid/repos/community-x86_64/anything
  acpid/repos/community-x86_64/handler.sh

--------------------------------+
 /PKGBUILD                      |  104 ++++++++++++++++++++++++++
 /acpid.service                 |   24 ++++++
 /acpid.socket                  |   16 ++++
 /anything                      |    6 +
 /handler.sh                    |  154 +++++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD        |   52 -------------
 community-i686/acpid.service   |   11 --
 community-i686/acpid.socket    |    8 --
 community-i686/anything        |    3 
 community-i686/handler.sh      |   77 -------------------
 community-x86_64/PKGBUILD      |   52 -------------
 community-x86_64/acpid.service |   11 --
 community-x86_64/acpid.socket  |    8 --
 community-x86_64/anything      |    3 
 community-x86_64/handler.sh    |   77 -------------------
 15 files changed, 304 insertions(+), 302 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-i686/PKGBUILD	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.23
-pkgrel=2
-pkgdesc='A daemon for delivering ACPI power management events with netlink support'
-arch=('i686' 'x86_64')
-url='http://sourceforge.net/projects/acpid2/'
-license=('GPL')
-depends=('bash')
-optdepends=('perl: use perl based examples')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
-source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
-        'acpid.socket'
-        'acpid.service'
-        'anything'
-        'handler.sh')
-md5sums=('d7bcdcdefcd53b03730e50ba842554ea'
-         'd11700eb136e0489835ddaf977a7905b'
-         'e26d161c257f1de8da20ca83368ac9e7'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         '47f44ff5f02685dce8bcdab8568f0c38')
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --sbindir=/usr/bin
-  make
-}
-
-package() {
-  pushd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  popd
-
-  # default config
-  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
-  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
-
-  # systemd
-  install -Dm644 acpid.socket "$pkgdir/usr/lib/systemd/system/acpid.socket"
-  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
-
-  # fix acpid rights
-  chmod 755 "$pkgdir/usr/bin/acpid"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: acpid/repos/community-i686/PKGBUILD (from rev 122967, acpid/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.23
+pkgrel=3
+pkgdesc='A daemon for delivering ACPI power management events with netlink support'
+arch=('i686' 'x86_64')
+url='http://sourceforge.net/projects/acpid2/'
+license=('GPL')
+depends=('bash')
+optdepends=('perl: use perl based examples')
+replaces=('acpid2')
+backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
+source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
+        'acpid.socket'
+        'acpid.service'
+        'anything'
+        'handler.sh')
+md5sums=('d7bcdcdefcd53b03730e50ba842554ea'
+         'd11700eb136e0489835ddaf977a7905b'
+         'b8914d2792e40eb18a5792aed2e99006'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         '47f44ff5f02685dce8bcdab8568f0c38')
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sbindir=/usr/bin
+  make
+}
+
+package() {
+  pushd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  popd
+
+  # default config
+  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
+  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
+
+  # systemd
+  install -Dm644 acpid.socket "$pkgdir/usr/lib/systemd/system/acpid.socket"
+  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
+
+  # fix acpid rights
+  chmod 755 "$pkgdir/usr/bin/acpid"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-i686/acpid.service
===================================================================
--- community-i686/acpid.service	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-i686/acpid.service	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,11 +0,0 @@
-[Unit]
-Description=ACPI event daemon
-Documentation=man:acpid(8)
-Requires=acpid.socket systemd-udev-settle.service
-
-[Service]
-ExecStart=/usr/bin/acpid -f
-
-[Install]
-WantedBy=multi-user.target
-Also=acpid.socket

Copied: acpid/repos/community-i686/acpid.service (from rev 122967, acpid/trunk/acpid.service)
===================================================================
--- community-i686/acpid.service	                        (rev 0)
+++ community-i686/acpid.service	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,12 @@
+[Unit]
+Description=ACPI event daemon
+Documentation=man:acpid(8)
+Requires=acpid.socket systemd-udev-settle.service
+After=systemd-udev-settle.service
+
+[Service]
+ExecStart=/usr/bin/acpid -f
+
+[Install]
+WantedBy=multi-user.target
+Also=acpid.socket

Deleted: community-i686/acpid.socket
===================================================================
--- community-i686/acpid.socket	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-i686/acpid.socket	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,8 +0,0 @@
-[Unit]
-Description=ACPID Listen Socket
-
-[Socket]
-ListenStream=/var/run/acpid.socket
-
-[Install]
-WantedBy=sockets.target

Copied: acpid/repos/community-i686/acpid.socket (from rev 122967, acpid/trunk/acpid.socket)
===================================================================
--- community-i686/acpid.socket	                        (rev 0)
+++ community-i686/acpid.socket	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,8 @@
+[Unit]
+Description=ACPID Listen Socket
+
+[Socket]
+ListenStream=/var/run/acpid.socket
+
+[Install]
+WantedBy=sockets.target

Deleted: community-i686/anything
===================================================================
--- community-i686/anything	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-i686/anything	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,3 +0,0 @@
-# Pass all events to our one handler script
-event=.*
-action=/etc/acpi/handler.sh %e

Copied: acpid/repos/community-i686/anything (from rev 122967, acpid/trunk/anything)
===================================================================
--- community-i686/anything	                        (rev 0)
+++ community-i686/anything	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,3 @@
+# Pass all events to our one handler script
+event=.*
+action=/etc/acpi/handler.sh %e

Deleted: community-i686/handler.sh
===================================================================
--- community-i686/handler.sh	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-i686/handler.sh	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,77 +0,0 @@
-#!/bin/bash
-# Default acpi script that takes an entry for all actions
-
-case "$1" in
-    button/power)
-        case "$2" in
-            PBTN|PWRF)
-                logger 'PowerButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    button/sleep)
-        case "$2" in
-            SLPB|SBTN)
-                logger 'SleepButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    ac_adapter)
-        case "$2" in
-            AC|ACAD|ADP0)
-                case "$4" in
-                    00000000)
-                        logger 'AC unpluged'
-                        ;;
-                    00000001)
-                        logger 'AC pluged'
-                        ;;
-                esac
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    battery)
-        case "$2" in
-            BAT0)
-                case "$4" in
-                    00000000)
-                        logger 'Battery online'
-                        ;;
-                    00000001)
-                        logger 'Battery offline'
-                        ;;
-                esac
-                ;;
-            CPU0)
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/lid)
-        case "$3" in
-            close)
-                logger 'LID closed'
-                ;;
-            open)
-                logger 'LID opened'
-                ;;
-            *)
-                logger "ACPI action undefined: $3"
-                ;;
-    esac
-    ;;
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac
-
-# vim:set ts=4 sw=4 ft=sh et:

Copied: acpid/repos/community-i686/handler.sh (from rev 122967, acpid/trunk/handler.sh)
===================================================================
--- community-i686/handler.sh	                        (rev 0)
+++ community-i686/handler.sh	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,77 @@
+#!/bin/bash
+# Default acpi script that takes an entry for all actions
+
+case "$1" in
+    button/power)
+        case "$2" in
+            PBTN|PWRF)
+                logger 'PowerButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    button/sleep)
+        case "$2" in
+            SLPB|SBTN)
+                logger 'SleepButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    ac_adapter)
+        case "$2" in
+            AC|ACAD|ADP0)
+                case "$4" in
+                    00000000)
+                        logger 'AC unpluged'
+                        ;;
+                    00000001)
+                        logger 'AC pluged'
+                        ;;
+                esac
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    battery)
+        case "$2" in
+            BAT0)
+                case "$4" in
+                    00000000)
+                        logger 'Battery online'
+                        ;;
+                    00000001)
+                        logger 'Battery offline'
+                        ;;
+                esac
+                ;;
+            CPU0)
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/lid)
+        case "$3" in
+            close)
+                logger 'LID closed'
+                ;;
+            open)
+                logger 'LID opened'
+                ;;
+            *)
+                logger "ACPI action undefined: $3"
+                ;;
+    esac
+    ;;
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac
+
+# vim:set ts=4 sw=4 ft=sh et:

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-x86_64/PKGBUILD	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer
-# Contributor: xduugu
-# Contributor: Manolis Tzanidakis
-# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
-
-pkgname=acpid
-pkgver=2.0.23
-pkgrel=2
-pkgdesc='A daemon for delivering ACPI power management events with netlink support'
-arch=('i686' 'x86_64')
-url='http://sourceforge.net/projects/acpid2/'
-license=('GPL')
-depends=('bash')
-optdepends=('perl: use perl based examples')
-replaces=('acpid2')
-backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
-source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
-        'acpid.socket'
-        'acpid.service'
-        'anything'
-        'handler.sh')
-md5sums=('d7bcdcdefcd53b03730e50ba842554ea'
-         'd11700eb136e0489835ddaf977a7905b'
-         'e26d161c257f1de8da20ca83368ac9e7'
-         '2d37b98d6e74bab815604b8b48c6cfd4'
-         '47f44ff5f02685dce8bcdab8568f0c38')
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --sbindir=/usr/bin
-  make
-}
-
-package() {
-  pushd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  popd
-
-  # default config
-  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
-  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
-
-  # systemd
-  install -Dm644 acpid.socket "$pkgdir/usr/lib/systemd/system/acpid.socket"
-  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
-
-  # fix acpid rights
-  chmod 755 "$pkgdir/usr/bin/acpid"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: acpid/repos/community-x86_64/PKGBUILD (from rev 122967, acpid/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: xduugu
+# Contributor: Manolis Tzanidakis
+# Contributor: Jonathan Schmidt <j.schmidt at archlinux.us
+
+pkgname=acpid
+pkgver=2.0.23
+pkgrel=3
+pkgdesc='A daemon for delivering ACPI power management events with netlink support'
+arch=('i686' 'x86_64')
+url='http://sourceforge.net/projects/acpid2/'
+license=('GPL')
+depends=('bash')
+optdepends=('perl: use perl based examples')
+replaces=('acpid2')
+backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
+source=("http://downloads.sourceforge.net/sourceforge/acpid2/$pkgname-$pkgver.tar.xz"
+        'acpid.socket'
+        'acpid.service'
+        'anything'
+        'handler.sh')
+md5sums=('d7bcdcdefcd53b03730e50ba842554ea'
+         'd11700eb136e0489835ddaf977a7905b'
+         'b8914d2792e40eb18a5792aed2e99006'
+         '2d37b98d6e74bab815604b8b48c6cfd4'
+         '47f44ff5f02685dce8bcdab8568f0c38')
+
+build() {
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --sbindir=/usr/bin
+  make
+}
+
+package() {
+  pushd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  popd
+
+  # default config
+  install -Dm644 anything "$pkgdir/etc/acpi/events/anything"
+  install -Dm755 handler.sh "$pkgdir/etc/acpi/handler.sh"
+
+  # systemd
+  install -Dm644 acpid.socket "$pkgdir/usr/lib/systemd/system/acpid.socket"
+  install -Dm644 acpid.service "$pkgdir/usr/lib/systemd/system/acpid.service"
+
+  # fix acpid rights
+  chmod 755 "$pkgdir/usr/bin/acpid"
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-x86_64/acpid.service
===================================================================
--- community-x86_64/acpid.service	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-x86_64/acpid.service	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,11 +0,0 @@
-[Unit]
-Description=ACPI event daemon
-Documentation=man:acpid(8)
-Requires=acpid.socket systemd-udev-settle.service
-
-[Service]
-ExecStart=/usr/bin/acpid -f
-
-[Install]
-WantedBy=multi-user.target
-Also=acpid.socket

Copied: acpid/repos/community-x86_64/acpid.service (from rev 122967, acpid/trunk/acpid.service)
===================================================================
--- community-x86_64/acpid.service	                        (rev 0)
+++ community-x86_64/acpid.service	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,12 @@
+[Unit]
+Description=ACPI event daemon
+Documentation=man:acpid(8)
+Requires=acpid.socket systemd-udev-settle.service
+After=systemd-udev-settle.service
+
+[Service]
+ExecStart=/usr/bin/acpid -f
+
+[Install]
+WantedBy=multi-user.target
+Also=acpid.socket

Deleted: community-x86_64/acpid.socket
===================================================================
--- community-x86_64/acpid.socket	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-x86_64/acpid.socket	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,8 +0,0 @@
-[Unit]
-Description=ACPID Listen Socket
-
-[Socket]
-ListenStream=/var/run/acpid.socket
-
-[Install]
-WantedBy=sockets.target

Copied: acpid/repos/community-x86_64/acpid.socket (from rev 122967, acpid/trunk/acpid.socket)
===================================================================
--- community-x86_64/acpid.socket	                        (rev 0)
+++ community-x86_64/acpid.socket	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,8 @@
+[Unit]
+Description=ACPID Listen Socket
+
+[Socket]
+ListenStream=/var/run/acpid.socket
+
+[Install]
+WantedBy=sockets.target

Deleted: community-x86_64/anything
===================================================================
--- community-x86_64/anything	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-x86_64/anything	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,3 +0,0 @@
-# Pass all events to our one handler script
-event=.*
-action=/etc/acpi/handler.sh %e

Copied: acpid/repos/community-x86_64/anything (from rev 122967, acpid/trunk/anything)
===================================================================
--- community-x86_64/anything	                        (rev 0)
+++ community-x86_64/anything	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,3 @@
+# Pass all events to our one handler script
+event=.*
+action=/etc/acpi/handler.sh %e

Deleted: community-x86_64/handler.sh
===================================================================
--- community-x86_64/handler.sh	2014-11-23 00:06:39 UTC (rev 122967)
+++ community-x86_64/handler.sh	2014-11-23 00:07:04 UTC (rev 122968)
@@ -1,77 +0,0 @@
-#!/bin/bash
-# Default acpi script that takes an entry for all actions
-
-case "$1" in
-    button/power)
-        case "$2" in
-            PBTN|PWRF)
-                logger 'PowerButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    button/sleep)
-        case "$2" in
-            SLPB|SBTN)
-                logger 'SleepButton pressed'
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    ac_adapter)
-        case "$2" in
-            AC|ACAD|ADP0)
-                case "$4" in
-                    00000000)
-                        logger 'AC unpluged'
-                        ;;
-                    00000001)
-                        logger 'AC pluged'
-                        ;;
-                esac
-                ;;
-            *)
-                logger "ACPI action undefined: $2"
-                ;;
-        esac
-        ;;
-    battery)
-        case "$2" in
-            BAT0)
-                case "$4" in
-                    00000000)
-                        logger 'Battery online'
-                        ;;
-                    00000001)
-                        logger 'Battery offline'
-                        ;;
-                esac
-                ;;
-            CPU0)
-                ;;
-            *)  logger "ACPI action undefined: $2" ;;
-        esac
-        ;;
-    button/lid)
-        case "$3" in
-            close)
-                logger 'LID closed'
-                ;;
-            open)
-                logger 'LID opened'
-                ;;
-            *)
-                logger "ACPI action undefined: $3"
-                ;;
-    esac
-    ;;
-    *)
-        logger "ACPI group/action undefined: $1 / $2"
-        ;;
-esac
-
-# vim:set ts=4 sw=4 ft=sh et:

Copied: acpid/repos/community-x86_64/handler.sh (from rev 122967, acpid/trunk/handler.sh)
===================================================================
--- community-x86_64/handler.sh	                        (rev 0)
+++ community-x86_64/handler.sh	2014-11-23 00:07:04 UTC (rev 122968)
@@ -0,0 +1,77 @@
+#!/bin/bash
+# Default acpi script that takes an entry for all actions
+
+case "$1" in
+    button/power)
+        case "$2" in
+            PBTN|PWRF)
+                logger 'PowerButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    button/sleep)
+        case "$2" in
+            SLPB|SBTN)
+                logger 'SleepButton pressed'
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    ac_adapter)
+        case "$2" in
+            AC|ACAD|ADP0)
+                case "$4" in
+                    00000000)
+                        logger 'AC unpluged'
+                        ;;
+                    00000001)
+                        logger 'AC pluged'
+                        ;;
+                esac
+                ;;
+            *)
+                logger "ACPI action undefined: $2"
+                ;;
+        esac
+        ;;
+    battery)
+        case "$2" in
+            BAT0)
+                case "$4" in
+                    00000000)
+                        logger 'Battery online'
+                        ;;
+                    00000001)
+                        logger 'Battery offline'
+                        ;;
+                esac
+                ;;
+            CPU0)
+                ;;
+            *)  logger "ACPI action undefined: $2" ;;
+        esac
+        ;;
+    button/lid)
+        case "$3" in
+            close)
+                logger 'LID closed'
+                ;;
+            open)
+                logger 'LID opened'
+                ;;
+            *)
+                logger "ACPI action undefined: $3"
+                ;;
+    esac
+    ;;
+    *)
+        logger "ACPI group/action undefined: $1 / $2"
+        ;;
+esac
+
+# vim:set ts=4 sw=4 ft=sh et:



More information about the arch-commits mailing list