arc: add check for cpufreqscaling possibility in addon selection

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-05-04 11:09:10 +02:00
parent 3058bfcaef
commit 8be27421b2

View File

@@ -48,6 +48,9 @@ function addonSelection() {
touch "${TMP_PATH}/opts"
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
fi
echo -e "${ADDON} \"${DESC}\" ${ACT}" >>"${TMP_PATH}/opts"
done <<<$(availableAddons "${PLATFORM}")
dialog --backtitle "$(backtitle)" --title "Loader Addons" --aspect 18 \