diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-26 12:06:06 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2005-08-26 12:06:06 +0000 |
commit | fd4e4116c968effd90fbe581ec7e3598b7d3520b (patch) | |
tree | 06048eb2331a6ce223178b8f390f29f15b9659f8 /sys-power/cpufreqd/files | |
parent | Added patch to change ed2k_hash name to mld_hash, bug #103693 (diff) | |
download | gentoo-2-fd4e4116c968effd90fbe581ec7e3598b7d3520b.tar.gz gentoo-2-fd4e4116c968effd90fbe581ec7e3598b7d3520b.tar.bz2 gentoo-2-fd4e4116c968effd90fbe581ec7e3598b7d3520b.zip |
New beta release, bug #103798.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-power/cpufreqd/files')
-rw-r--r-- | sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d | 37 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_beta4 | 1 |
2 files changed, 38 insertions, 0 deletions
diff --git a/sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d b/sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d new file mode 100644 index 000000000000..0029692a25a3 --- /dev/null +++ b/sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d @@ -0,0 +1,37 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/files/cpufreqd-2.0.0_beta4-init.d,v 1.1 2005/08/26 12:06:06 brix Exp $ + +CONFIGFILE=/etc/cpufreqd.conf + +depend() { + need localmount +} + +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 --quiet --exec /usr/sbin/cpufreqd -- \ + -f ${CONFIGFILE} + eend ${?} +} + +stop() { + ebegin "Stopping CPU Frequency Daemon" + start-stop-daemon --stop --quiet --exec /usr/sbin/cpufreqd + eend ${?} +} diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_beta4 b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_beta4 new file mode 100644 index 000000000000..576f49f75e13 --- /dev/null +++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0_beta4 @@ -0,0 +1 @@ +MD5 ead34f298bc2e2e6f227ea03350e588f cpufreqd-2.0.0-beta4.tar.gz 456917 |