Skip to content

Commit

Permalink
arc: check for cpufreqscaling addon
Browse files Browse the repository at this point in the history
Signed-off-by: AuxXxilium <[email protected]>
  • Loading branch information
AuxXxilium committed Aug 25, 2024
1 parent 5e7e62b commit 82e403e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/initrd/opt/arc/arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 82e403e

Please sign in to comment.