Index: cpufreqd-2.2.0-init.d =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-power/cpufreqd/files/cpufreqd-2.2.0-init.d,v retrieving revision 1.2 diff -u -b -B -r1.2 cpufreqd-2.2.0-init.d --- cpufreqd-2.2.0-init.d 20 Oct 2006 19:47:34 -0000 1.2 +++ cpufreqd-2.2.0-init.d 20 Oct 2006 19:51:08 -0000 @@ -16,11 +16,18 @@ return 1 fi - if [[ ! -e /proc/cpufreq ]] && [[ ! -e /sys/devices/system/cpu/cpu0/cpufreq ]]; then + if [ ! -e /proc/cpufreq ] ; then + for cpu in /sys/devices/system/cpu/cpu[0-9]* ; do + n=${cpu##*/} + n=${n/cpu/} + + if [ ! -e /sys/devices/system/cpu/cpu${n}/cpufreq ] ; then eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" eerror "Make sure that the appropiate drivers for your CPU are available." return 1 fi + done + fi } start() {