diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2006-07-04 16:34:49 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2006-07-04 16:34:49 +0000 |
commit | 692c66cf19a79265b3f1576d63b9ccd00dc1dc77 (patch) | |
tree | b96a83f5ecfde5cfe8638d16a704c6413ed74bca /sys-power/cpufreqd | |
parent | patch by nicho (diff) | |
download | gentoo-2-692c66cf19a79265b3f1576d63b9ccd00dc1dc77.tar.gz gentoo-2-692c66cf19a79265b3f1576d63b9ccd00dc1dc77.tar.bz2 gentoo-2-692c66cf19a79265b3f1576d63b9ccd00dc1dc77.zip |
Added missing file, bug #138906.
(Portage version: 2.1-r1)
Diffstat (limited to 'sys-power/cpufreqd')
-rw-r--r-- | sys-power/cpufreqd/ChangeLog | 6 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/cpufreqd-2.1.1-init.d | 38 |
2 files changed, 43 insertions, 1 deletions
diff --git a/sys-power/cpufreqd/ChangeLog b/sys-power/cpufreqd/ChangeLog index b4e6a2ba7ca4..5b0f0c30fabb 100644 --- a/sys-power/cpufreqd/ChangeLog +++ b/sys-power/cpufreqd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-power/cpufreqd # Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.32 2006/06/23 23:42:08 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/ChangeLog,v 1.33 2006/07/04 16:34:49 brix Exp $ + + 04 Jul 2006; Henrik Brix Andersen <brix@gentoo.org> + +files/cpufreqd-2.1.1-init.d: + Added missing file, bug #138906. *cpufreqd-2.1.1 (23 Jun 2006) diff --git a/sys-power/cpufreqd/files/cpufreqd-2.1.1-init.d b/sys-power/cpufreqd/files/cpufreqd-2.1.1-init.d new file mode 100644 index 000000000000..d83cac6dca91 --- /dev/null +++ b/sys-power/cpufreqd/files/cpufreqd-2.1.1-init.d @@ -0,0 +1,38 @@ +#!/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/cpufreqd/files/cpufreqd-2.1.1-init.d,v 1.1 2006/07/04 16:34:49 brix Exp $ + +CONFIGFILE=/etc/cpufreqd.conf + +depend() { + need localmount + use logger lm_sensors +} + +checkconfig() { + if [[ ! -f ${CONFIGFILE} ]]; then + eerror "Configuration file ${CONFIGFILE} not found" + return 1 + fi + + if [[ ! -e /proc/cpufreq ]] && [[ ! -e /sys/devices/system/cpu/cpu0/cpufreq ]]; then + eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting CPU Frequency Daemon" + start-stop-daemon --start --exec /usr/sbin/cpufreqd -- \ + -f ${CONFIGFILE} + eend ${?} +} + +stop() { + ebegin "Stopping CPU Frequency Daemon" + start-stop-daemon --stop --exec /usr/sbin/cpufreqd + eend ${?} +} |