diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2006-06-20 22:45:56 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2006-06-20 22:45:56 +0000 |
commit | 185edb464022dd9821b58fa3aa692784fbe53369 (patch) | |
tree | 0eb5c3b05f54af8a1992f53045dd58784a6b6c99 /sys-power/cpufreqd/files | |
parent | Keyworded ~sparc wrt #137192 (diff) | |
download | gentoo-2-185edb464022dd9821b58fa3aa692784fbe53369.tar.gz gentoo-2-185edb464022dd9821b58fa3aa692784fbe53369.tar.bz2 gentoo-2-185edb464022dd9821b58fa3aa692784fbe53369.zip |
Version bump, thanks to Alon Bar-Lev in bug #137396.
(Portage version: 2.1)
Diffstat (limited to 'sys-power/cpufreqd/files')
-rw-r--r-- | sys-power/cpufreqd/files/cpufreqd-2.1.0-init.d | 38 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 | 2 | ||||
-rw-r--r-- | sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 | 6 |
3 files changed, 46 insertions, 0 deletions
diff --git a/sys-power/cpufreqd/files/cpufreqd-2.1.0-init.d b/sys-power/cpufreqd/files/cpufreqd-2.1.0-init.d new file mode 100644 index 000000000000..5a9f4d91302c --- /dev/null +++ b/sys-power/cpufreqd/files/cpufreqd-2.1.0-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.0-init.d,v 1.1 2006/06/20 22:45:56 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 ${?} +} diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 index ee7bb19c007e..1f388f584a2b 100644 --- a/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 +++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.0.0 @@ -2,3 +2,5 @@ MD5 26a6e0795624114cc15aa48ad8b6ca6b cpufreqd-2.0.0.tar.bz2 256423 RMD160 97ae4ccf77f00db2aa2afebde4e5d0cb7dd24439 cpufreqd-2.0.0.tar.bz2 256423 SHA256 c56e41a1c530cbb0648132660ace4861c9262d241753876c038697120f45fa8c cpufreqd-2.0.0.tar.bz2 256423 MD5 df36711124e08b3349692a8788755d14 nvclock0.8b.tar.gz 353127 +RMD160 66cac5993dc141d00efaa95d8f5ec38ed53854f6 nvclock0.8b.tar.gz 353127 +SHA256 a1fbdb82837c33869c0ebfcb95b6e11fc53b86919e8d1d17265d1af71eb04393 nvclock0.8b.tar.gz 353127 diff --git a/sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 b/sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 new file mode 100644 index 000000000000..ddfda53bc5da --- /dev/null +++ b/sys-power/cpufreqd/files/digest-cpufreqd-2.1.0 @@ -0,0 +1,6 @@ +MD5 3d0028502e7674b13f9318a20441f45d cpufreqd-2.1.0.tar.bz2 281762 +RMD160 7f4c8efea26f456ddda20092ebe954f366e8d633 cpufreqd-2.1.0.tar.bz2 281762 +SHA256 852efb0afecd62e848ede20490dd1bddc3d09dbf055d817ae052b5a5d299cb26 cpufreqd-2.1.0.tar.bz2 281762 +MD5 df36711124e08b3349692a8788755d14 nvclock0.8b.tar.gz 353127 +RMD160 66cac5993dc141d00efaa95d8f5ec38ed53854f6 nvclock0.8b.tar.gz 353127 +SHA256 a1fbdb82837c33869c0ebfcb95b6e11fc53b86919e8d1d17265d1af71eb04393 nvclock0.8b.tar.gz 353127 |