diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-04-03 14:54:55 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-04-03 14:54:55 +0000 |
commit | b618c3d0693aec564c6746238fd05d94e31d3b76 (patch) | |
tree | 4a4834f3097bba25dba1adeba4324080c1b4bf7b /extra/acpid | |
parent | 8cb5196780766f47b595410eed8ddbee2e8add08 (diff) |
Tue Apr 3 14:54:45 UTC 2012
Diffstat (limited to 'extra/acpid')
-rw-r--r-- | extra/acpid/PKGBUILD | 43 | ||||
-rw-r--r-- | extra/acpid/acpid | 38 | ||||
-rw-r--r-- | extra/acpid/acpid.conf.d | 5 | ||||
-rw-r--r-- | extra/acpid/anything | 3 | ||||
-rw-r--r-- | extra/acpid/handler.sh | 70 |
5 files changed, 0 insertions, 159 deletions
diff --git a/extra/acpid/PKGBUILD b/extra/acpid/PKGBUILD deleted file mode 100644 index ae5cfc9e0..000000000 --- a/extra/acpid/PKGBUILD +++ /dev/null @@ -1,43 +0,0 @@ -# $Id: PKGBUILD 145167 2011-12-18 19:59:26Z eric $ -# Maintainer: -# Contributor: xduugu -# Contributor: Manolis Tzanidakis -# Contributor: Jonathan Schmidt <j.schmidt@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 -} diff --git a/extra/acpid/acpid b/extra/acpid/acpid deleted file mode 100644 index 288ac078d..000000000 --- a/extra/acpid/acpid +++ /dev/null @@ -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 diff --git a/extra/acpid/acpid.conf.d b/extra/acpid/acpid.conf.d deleted file mode 100644 index b60103a2d..000000000 --- a/extra/acpid/acpid.conf.d +++ /dev/null @@ -1,5 +0,0 @@ -# -# Arguments to be passed to the acpid daemon -# - -ACPID_ARGS="" diff --git a/extra/acpid/anything b/extra/acpid/anything deleted file mode 100644 index d1828989b..000000000 --- a/extra/acpid/anything +++ /dev/null @@ -1,3 +0,0 @@ -# Pass all events to our one handler script -event=.* -action=/etc/acpi/handler.sh %e diff --git a/extra/acpid/handler.sh b/extra/acpid/handler.sh deleted file mode 100644 index 505ed7c11..000000000 --- a/extra/acpid/handler.sh +++ /dev/null @@ -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 |