From: Daniel Weismueller Date: Sat, 24 Nov 2012 13:03:44 +0000 (+0100) Subject: cpufreq: Fix loading of cpufreq modules with newer kernels. X-Git-Tag: v2.13-beta1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceffe9bdf29d9e86fb7b8fe6ab65505e6e76eb24;p=people%2Fms%2Fipfire-2.x.git cpufreq: Fix loading of cpufreq modules with newer kernels. --- diff --git a/src/initscripts/init.d/cpufreq b/src/initscripts/init.d/cpufreq index 093b8b129d..0d4cdb95b1 100644 --- a/src/initscripts/init.d/cpufreq +++ b/src/initscripts/init.d/cpufreq @@ -20,8 +20,8 @@ case "${1}" in boot_mesg -n "Starting cpufreq... " # try cpufreq hardware depend modules - for i in $(find /lib/modules/$(uname -r)/kernel/arch/x86/kernel/cpu/cpufreq \ - ! -name speedstep-lib.ko ! -name p4-clockmod.ko | sort -d -r); do + for i in $(find /lib/modules/$(uname -r)/kernel/drivers/cpufreq \ + ! -name speedstep-lib.ko ! -name p4-clockmod.ko ! -name "cpufreq_*" ! -name mperf.ko | sort -d -r); do module=$(basename $i | cut -d. -f1); modprobe $module > /dev/null 2>&1; if [ ${?} = 0 ]; then