arc: more fixes

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-06-28 20:41:44 +02:00
parent 8f0943fb82
commit fd2d2ca939

View File

@@ -35,7 +35,8 @@ if ! grep -q "^flags.*acpi.*" /proc/cpuinfo; then
else
ACPISYS="true"
fi
if [ $(ls -ltr /sys/devices/system/cpu/cpufreq/* 2>/dev/null | wc -l) -gt 0 ]; then
CPUFREQUENCIES=$(ls -ltr /sys/devices/system/cpu/cpufreq/* 2>/dev/null | wc -l)
if [ ${CPUFREQUENCIES} -gt 0 ]; then
CPUFREQ="true"
else
CPUFREQ="false"