diff --git a/cpufreqscaling/all/usr/sbin/rescaler.sh b/cpufreqscaling/all/usr/sbin/rescaler.sh index 9c58aeb..55748b5 100755 --- a/cpufreqscaling/all/usr/sbin/rescaler.sh +++ b/cpufreqscaling/all/usr/sbin/rescaler.sh @@ -13,7 +13,7 @@ cpucorecount=$(cat /proc/cpuinfo | grep processor | wc -l) cpucorecount=$((cpucorecount - 1)) governor=$(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) -if [ -f "/usr/lib/modules/cpufreq_${1}" ] || [ "${1}" = "schedutil" ]; then +if [ -f "/usr/lib/modules/cpufreq_${1}.ko" ] || [ "${1}" = "schedutil" ]; then # Set correct cpufreq governor to allow user defined frequency scaling if [ "$governor" != "${1}" ]; then for i in $(seq 0 "${cpucorecount}"); do