blob: 4251dd7b503d0ae9a8e4af010058497f45d32fbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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-001-init.d,v 1.1 2006/03/26 21:36:18 brix Exp $
checkconfig() {
if [ -z "${GOVERNOR}" ]; then
eerror "No governor set in /etc/conf.d/cpufrequtils"
return 1
fi
}
start() {
checkconfig || return 1
ebegin "Enabling ${GOVERNOR} cpufreq governor"
cpufreq-set -g ${GOVERNOR}
eend ${?}
}
|