summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-power/cpufrequtils/files/cpufrequtils-init.d-006')
-rwxr-xr-xsys-power/cpufrequtils/files/cpufrequtils-init.d-00641
1 files changed, 0 insertions, 41 deletions
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-init.d-006 b/sys-power/cpufrequtils/files/cpufrequtils-init.d-006
deleted file mode 100755
index 201f234..0000000
--- a/sys-power/cpufrequtils/files/cpufrequtils-init.d-006
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-init.d-006,v 1.1 2010/01/15 07:41:51 vapier Exp $
-
-affect_change() {
- local c ret=0 opts="$1"
- shift
- ebegin "Running cpufreq-set ${opts}"
- for c in $(cpufreq-info -o | awk '$1 == "CPU" { print $2 }') ; do
- cpufreq-set -c ${c} ${opts}
- : $(( ret += $? ))
- done
- eend ${ret}
-
- if [ $# -gt 0 ] ; then
- c=1
- einfo "Setting extra options: $*"
- if cd /sys/devices/system/cpu/cpufreq ; then
- local o v
- for o in "$@" ; do
- v=${o#*=}
- o=${o%%=*}
- echo ${v} > ${o} || break
- done
- c=0
- fi
- eend ${c}
- : $(( ret += c ))
- fi
-
- return ${ret}
-}
-
-start() {
- affect_change "${START_OPTS}" ${SYSFS_EXTRA}
-}
-
-stop() {
- affect_change "${STOP_OPTS}"
-}