summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/acpid
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-02-19 16:04:26 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-02-19 16:04:26 (GMT)
commit31352df953653df1b5d6f193c3ed192536467b31 (patch)
treeaa279cfd8d32ab1b6e11d45a7c0964705f222338 /abs/core-testing/acpid
parenta6c74e9e0b37d26ba7525d62602b812f7a6db61a (diff)
downloadlinhes_pkgbuild-31352df953653df1b5d6f193c3ed192536467b31.zip
linhes_pkgbuild-31352df953653df1b5d6f193c3ed192536467b31.tar.gz
linhes_pkgbuild-31352df953653df1b5d6f193c3ed192536467b31.tar.bz2
Change handler.sh to call the runit-shutdown scripts directly.
Previously it was failing because of a path issue.
Diffstat (limited to 'abs/core-testing/acpid')
-rw-r--r--abs/core-testing/acpid/PKGBUILD6
-rw-r--r--abs/core-testing/acpid/__changelog2
-rwxr-xr-xabs/core-testing/acpid/acpi_handler.sh23
-rwxr-xr-xabs/core-testing/acpid/handler.sh5
4 files changed, 7 insertions, 29 deletions
diff --git a/abs/core-testing/acpid/PKGBUILD b/abs/core-testing/acpid/PKGBUILD
index 4fbbdf2..5b9d033 100644
--- a/abs/core-testing/acpid/PKGBUILD
+++ b/abs/core-testing/acpid/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=acpid
pkgver=1.0.8
-pkgrel=1
+pkgrel=2
pkgdesc="A daemon for delivering ACPI power management events"
url="http://acpid.sourceforge.net"
license=('GPL2')
@@ -16,10 +16,6 @@ source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.t
anything
handler.sh)
backup=('etc/acpi/handler.sh' 'etc/acpi/events/anything')
-md5sums=('1d9c52fe2c0b51f8463f357c2a3d3ddb'
- '15903690f1bae4b3b0625b369de65521'
- '2d37b98d6e74bab815604b8b48c6cfd4'
- '0e8dd13793b1baa79a745f4034888367')
build() {
cd $srcdir/$pkgname-$pkgver
diff --git a/abs/core-testing/acpid/__changelog b/abs/core-testing/acpid/__changelog
new file mode 100644
index 0000000..1de4ec0
--- /dev/null
+++ b/abs/core-testing/acpid/__changelog
@@ -0,0 +1,2 @@
+Modify handler.sh to use runit-init.
+
diff --git a/abs/core-testing/acpid/acpi_handler.sh b/abs/core-testing/acpid/acpi_handler.sh
deleted file mode 100755
index 65e4ee5..0000000
--- a/abs/core-testing/acpid/acpi_handler.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-# Default acpi script that takes an entry for all actions
-set $*
-EVENT=`echo $1 |cut -d/ -f1`
-ACTION=`echo $1|cut -d/ -f2`
-
-#echo $EVENT
-#echo $ACTION
-case "$EVENT" in
- button)
- case "$ACTION" in
- power)
- echo Please wait while the system powers off | /usr/local/bin/putfifo /tmp/onscreen &
- xsay "Please wait while the system powers off" &
- /sbin/init 0
- ;;
- *) logger "ACPI action $2 is not defined"
- ;;
- esac
- ;;
- *) logger "ACPI group $1 / action $2 is not defined"
- ;;
-esac
diff --git a/abs/core-testing/acpid/handler.sh b/abs/core-testing/acpid/handler.sh
index ad31d1a..f6b0f9b 100755
--- a/abs/core-testing/acpid/handler.sh
+++ b/abs/core-testing/acpid/handler.sh
@@ -14,7 +14,10 @@ case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
- PWRF) logger "PowerButton pressed: $2" ;;
+ PWRF) logger "PowerButton pressed: $2"
+ /sbin/runit-init 0
+ /sbin/poweroff
+ ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;