diff options
author | Christian Heim <phreak@gentoo.org> | 2007-05-17 09:07:35 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-05-17 09:07:35 +0000 |
commit | d052bbf50c4e24ff96f55ff838b92f5a87c80bad (patch) | |
tree | afcd88c8cb3cb61a9d2dd6e9f1e4031c92302a6f /sys-power | |
parent | Initial import. (diff) | |
download | gentoo-2-d052bbf50c4e24ff96f55ff838b92f5a87c80bad.tar.gz gentoo-2-d052bbf50c4e24ff96f55ff838b92f5a87c80bad.tar.bz2 gentoo-2-d052bbf50c4e24ff96f55ff838b92f5a87c80bad.zip |
Updating the init-script to be busybox/dash compatible (thanks to Mike Arthur <mike at mikearthur.co.uk> in #178763).
(Portage version: 2.1.2.7)
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/cpufrequtils/ChangeLog | 6 | ||||
-rw-r--r-- | sys-power/cpufrequtils/files/cpufrequtils-init.d | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sys-power/cpufrequtils/ChangeLog b/sys-power/cpufrequtils/ChangeLog index 9307b8263506..86b59c9a31f7 100644 --- a/sys-power/cpufrequtils/ChangeLog +++ b/sys-power/cpufrequtils/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-power/cpufrequtils # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.35 2007/05/17 09:02:01 phreak Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/ChangeLog,v 1.36 2007/05/17 09:07:35 phreak Exp $ + + 17 May 2007; Christian Heim <phreak@gentoo.org> files/cpufrequtils-init.d: + Updating the init-script to be busybox/dash compatible (thanks to Mike + Arthur <mike at mikearthur.co.uk> in #178763). 17 May 2007; Christian Heim <phreak@gentoo.org> -files/cpufrequtils-001-conf.d, -files/cpufrequtils-001-init.d, 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}" |