diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 6e0c826a..00d17171 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -49,7 +49,7 @@ function addonSelection() { while read -r ADDON DESC; do arrayExistItem "${ADDON}" "${!ADDONS[@]}" && ACT="on" || ACT="off" if [ "${ADDON}" = "cpufreqscaling" ]; then - [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ] && continue + [ ! -d "/sys/devices/system/cpu/cpu0/cpufreq" ] && continue fi echo -e "${ADDON} \"${DESC}\" ${ACT}" >>"${TMP_PATH}/opts" done <<<$(availableAddons "${PLATFORM}")