summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-20 16:05:14 +0000
committerMike Frysinger <vapier@gentoo.org>2008-10-20 16:05:14 +0000
commitfc57b90a871c8eabb9a30a1839a3534444a42104 (patch)
tree38581e27e801ed07bcef4dbb914ae0ed18931602 /sys-power/cpufrequtils/files
parentRemove dependency on libX11, no longer needed as of 1.0.4 (Mart Raudsepp). (diff)
downloadhistorical-fc57b90a871c8eabb9a30a1839a3534444a42104.tar.gz
historical-fc57b90a871c8eabb9a30a1839a3534444a42104.tar.bz2
historical-fc57b90a871c8eabb9a30a1839a3534444a42104.zip
Version bump #228701 by Dennis Schridde and a more flexible init.d script by me #182049 by Jakub Zawadzki.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.26.2 x86_64
Diffstat (limited to 'sys-power/cpufrequtils/files')
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-conf.d-0057
-rw-r--r--sys-power/cpufrequtils/files/cpufrequtils-init.d-00516
2 files changed, 23 insertions, 0 deletions
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-conf.d-005 b/sys-power/cpufrequtils/files/cpufrequtils-conf.d-005
new file mode 100644
index 000000000000..68f5b7594c67
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-conf.d-005
@@ -0,0 +1,7 @@
+# /etc/conf.d/cpufrequtils: config file for /etc/init.d/cpufrequtils
+
+# Options when starting cpufreq (given to the `cpufreq-set` program)
+START_OPTS="--governor ondemand"
+
+# Options when stopping cpufreq (given to the `cpufreq-set` program)
+STOP_OPTS="--governor performance"
diff --git a/sys-power/cpufrequtils/files/cpufrequtils-init.d-005 b/sys-power/cpufrequtils/files/cpufrequtils-init.d-005
new file mode 100644
index 000000000000..0e910b3f3401
--- /dev/null
+++ b/sys-power/cpufrequtils/files/cpufrequtils-init.d-005
@@ -0,0 +1,16 @@
+#!/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-005,v 1.1 2008/10/20 16:05:14 vapier Exp $
+
+start() {
+ ebegin "Running cpufreq-set ${START_OPTS}"
+ cpufreq-set ${START_OPTS}
+ eend $?
+}
+
+start() {
+ ebegin "Running cpufreq-set ${START_OPTS}"
+ cpufreq-set ${STOP_OPTS}
+ eend $?
+}