- for module in acpi-cpufreq cpufreq-nforce2 e-powersaver \
- gx-suspmod longhaul longrun p4-clockmod powernow-k6 \
- powernow-k7 powernow-k8 speedstep-centrino speedstep-ich \
- speedstep-smi; do
- modprobe $module > /dev/null 2>&1;
- if [ ${?} = 0 ]; then
- boot_mesg -n "$SUCCESS$module$NORMAL "
- fi
+ 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
+ boot_mesg -n "$SUCCESS$module$NORMAL "
+ fi