Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 453794 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-6 / +5 lines)
Line  Link Here
0
-- /var/portage/sys-power/cpupower/files/init.d-r3
0
++ /etc/init.d/cpupower
Lines 7-25 Link Here
7
7
8
change() {
8
change() {
9
	local c ret=0 opts="$1"
9
	local c ret=0 opts="$1"
10
	shift
11
	if [ -n "$opts" ] ; then
10
	if [ -n "$opts" ] ; then
12
		ebegin "Running cpupower -c all frequency-set ${opts}"
11
		ebegin "Running cpupower -c all frequency-set ${opts}"
13
			cpupower -c all frequency-set ${opts} >/dev/null 2>&1
12
			cpupower -c all frequency-set ${opts} >/dev/null 2>&1
14
			: $(( ret += $? ))
13
			: $(( ret += $? ))
15
		eend ${ret}
14
		eend ${ret}
16
15
17
		if [ -d ${CPUFREQ_SYSFS} ] && [ $# -gt 0 ] ; then
16
		if [ -d ${CPUFREQ_SYSFS} ] && [ -n "${SYSFS_EXTRA}" ] ; then
18
			c=1
17
			c=1
19
			einfo "Setting extra options: $*"
18
			einfo "Setting extra options: ${SYSFS_EXTRA}"
20
			if cd ${CPUFREQ_SYSFS} ; then
19
			if cd ${CPUFREQ_SYSFS} ; then
21
				local o v
20
				local o v
22
				for o in "$@" ; do
21
				for o in ${SYSFS_EXTRA} ; do
23
					v=${o#*=}
22
					v=${o#*=}
24
					o=${o%%=*}
23
					o=${o%%=*}
25
					echo ${v} > ${o} || break
24
					echo ${v} > ${o} || break
Lines 35-41 Link Here
35
}
34
}
36
35
37
start() {
36
start() {
38
	change "${START_OPTS}" "${SYSFS_EXTRA}"
37
	change "${START_OPTS}"
39
}
38
}
40
39
41
stop() {
40
stop() {

Return to bug 453794