diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-14 18:00:40 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-01-14 18:00:40 (GMT) |
commit | d4c430a738c65537924be978549bf4bf311abe6b (patch) | |
tree | 1f50ebd5d7ebfa948559baecb0a9e41834fec89d /abs/extra-testing/acpid/handler.sh | |
parent | 94fa5f06a88e21c52c315c8a42622d8724979c48 (diff) | |
download | linhes_pkgbuild-d4c430a738c65537924be978549bf4bf311abe6b.zip linhes_pkgbuild-d4c430a738c65537924be978549bf4bf311abe6b.tar.gz linhes_pkgbuild-d4c430a738c65537924be978549bf4bf311abe6b.tar.bz2 |
Doh! Remove acpid from extra as it is in core.
Diffstat (limited to 'abs/extra-testing/acpid/handler.sh')
-rw-r--r-- | abs/extra-testing/acpid/handler.sh | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/abs/extra-testing/acpid/handler.sh b/abs/extra-testing/acpid/handler.sh deleted file mode 100644 index ad31d1a..0000000 --- a/abs/extra-testing/acpid/handler.sh +++ /dev/null @@ -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 - 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) - 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 |