summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-05-17 09:07:35 +0000
committerChristian Heim <phreak@gentoo.org>2007-05-17 09:07:35 +0000
commit93b3409c9c4dfb834e84cb5593f896354cc4d00b (patch)
tree08f044babb020c57857d1bc82ea2d29bd0ff32ee /sys-power/cpufrequtils/files/cpufrequtils-init.d
parentInitial import. (diff)
downloadhistorical-93b3409c9c4dfb834e84cb5593f896354cc4d00b.tar.gz
historical-93b3409c9c4dfb834e84cb5593f896354cc4d00b.tar.bz2
historical-93b3409c9c4dfb834e84cb5593f896354cc4d00b.zip
Updating the init-script to be busybox/dash compatible (thanks to Mike Arthur <mike at mikearthur.co.uk> in #178763).
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'sys-power/cpufrequtils/files/cpufrequtils-init.d')
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-init.d5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-init.d b/sys-power/cpufrequtils/files/cpufrequtils-init.d
index 92685fb7a300..7330e85d52cd 100644
--- a/sys-power/cpufrequtils/files/cpufrequtils-init.d
+++ b/sys-power/cpufrequtils/files/cpufrequtils-init.d
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2006 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,v 1.1 2007/05/17 09:02:01 phreak Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-init.d,v 1.2 2007/05/17 09:07:35 phreak Exp $
checkconfig() {
if [ -z "${GOVERNOR}" ]; then
@@ -22,8 +22,7 @@ affect_change() {
local cpu n
for cpu in /sys/devices/system/cpu/cpu[0-9]*; do
- n=${cpu##*/}
- n=${n/cpu/}
+ n=${cpu##*cpu}
ebegin "${1} ${2} cpufreq governor on CPU${n}"
cpufreq-set -c ${n} -g "${2}"