summaryrefslogtreecommitdiffstats
path: root/abs/extra/cpufrequtils/cpufreq.rcd
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-01 18:26:09 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-01 18:26:22 (GMT)
commite2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37 (patch)
treebee3fe89f2988dd244e11791755e129aa8c03b14 /abs/extra/cpufrequtils/cpufreq.rcd
parent8132c218cfc1f1acb1c6d12154e0d4ca075e77f2 (diff)
downloadlinhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.zip
linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.gz
linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.bz2
Mass move of uncompiled packages to abs_not_built.
The will sit here for a bit, and then will be removed completely if no one claims them.
Diffstat (limited to 'abs/extra/cpufrequtils/cpufreq.rcd')
-rw-r--r--abs/extra/cpufrequtils/cpufreq.rcd60
1 files changed, 0 insertions, 60 deletions
diff --git a/abs/extra/cpufrequtils/cpufreq.rcd b/abs/extra/cpufrequtils/cpufreq.rcd
deleted file mode 100644
index 9bc19b1..0000000
--- a/abs/extra/cpufrequtils/cpufreq.rcd
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-# source application-specific settings
-[ -f /etc/conf.d/cpufreq ] && . /etc/conf.d/cpufreq
-
-case "$1" in
- start)
- stat_busy "Setting cpufreq governing rules"
-
- params=""
- if [ -n "$governor" ]; then
- mod="cpufreq_$governor"
- params="-g $governor"
- grep -qw "$governor" /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors || modprobe -q $mod
- if [ $? -eq 0 ]; then
- if [ "$min_freq" != "" ]; then
- params="$params -d $min_freq"
- fi
- if [ "$max_freq" != "" ]; then
- params="$params -u $max_freq"
- fi
- else
- stat_busy " Cannot load governor module '$governor'"
- stat_fail
- exit
- fi
- fi
-
- if [ "$params" != "" ]; then
- CPUS=$(sed -ne 's/^processor.* \([0-9]\+\)$/\1/p' /proc/cpuinfo)
- stat_append ", cpu"
- for cpu in $CPUS; do
- stat_append " $cpu"
- cpufreq-set -c $cpu $params
- if [ "$freq" != "" ]; then
- cpufreq-set -c $cpu -f $freq
- fi
- done
- stat_done
- else
- stat_busy " Invalid configuration in /etc/conf.d/cpufreq"
- stat_fail
- fi
- ;;
- stop)
- # nothing to do
- ;;
- restart)
- $0 start
- ;;
- set)
- # TODO: make callable... "cpufreq set 800MHz"
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0