arc: check for cpufreqscaling addon

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-08-25 18:39:41 +02:00
parent 5e7e62b9d5
commit 82e403e69c

View File

@ -454,7 +454,7 @@ function arcSettings() {
initConfigKey "addons.storagepanel" "" "${USER_CONFIG_FILE}"
addonSelection
# Check for CPU Frequency Scaling
if [ "${CPUFREQ}" == "true" ]; then
if [ "${CPUFREQ}" == "true" ] && readConfigMap "addons" "${USER_CONFIG_FILE}" | grep -q "cpufreqscaling"; then
# Select Governor for DSM
initConfigKey "addons.cpufreqscaling" "" "${USER_CONFIG_FILE}"
dialog --backtitle "$(backtitle)" --colors --title "CPU Frequency Scaling" \