diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-10-12 18:01:10 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-10-12 18:01:10 +0000 |
commit | eb2436ffb84a3b593c5bc28857bb6789104ddf23 (patch) | |
tree | 9eb4905f102ae4da8d94be0793474c3dec3c2ba8 /sys-apps | |
parent | ouch, forgot this one, removed because of buffer overflows (diff) | |
download | gentoo-2-eb2436ffb84a3b593c5bc28857bb6789104ddf23.tar.gz gentoo-2-eb2436ffb84a3b593c5bc28857bb6789104ddf23.tar.bz2 gentoo-2-eb2436ffb84a3b593c5bc28857bb6789104ddf23.zip |
dont require all govners to be present #67242
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/cpudyn/files/cpudyn.init | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sys-apps/cpudyn/files/cpudyn.init b/sys-apps/cpudyn/files/cpudyn.init index 9ad3f2ddd7ba..ab4d530f33ce 100644 --- a/sys-apps/cpudyn/files/cpudyn.init +++ b/sys-apps/cpudyn/files/cpudyn.init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/cpudyn/files/cpudyn.init,v 1.5 2004/10/10 06:42:10 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/cpudyn/files/cpudyn.init,v 1.6 2004/10/12 18:01:10 vapier Exp $ # # Based on the Debian init script written by Celso Gonzalez <celso@bulma.net>, # and on the cpufreqd Gentoo init script written by Robert Gogolok <robertgogolok@web.de>. @@ -49,19 +49,8 @@ checkconfig() { # Silently try to load the governors; shouldn't hurt if they're already there modprobe -q cpufreq_performance modprobe -q cpufreq_powersave - # Check that all governors required are actually present - missing="" - for x in userspace performance powersave ; do - if [ -z "$(grep ${x} ${CPUFREQ_FILE}/scaling_available_governors)" ]; then - missing="${missing} ${x}" - fi - done - # If some are missing, report which, then bail - if [ ! -z "${missing}" ]; then - eerror "2.5/2.6 CPUfreq support needs userspace, performance and powersave governors" - eerror "Missing${missing}" - return 1 - fi + modprobe -q cpufreq_userspace + modprobe -q cpufreq_ondemand fi } |