Skip to content

Commit

Permalink
arc: fix logic
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 b524a95 commit 5e7e62b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions files/initrd/opt/arc/arc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -444,14 +444,6 @@ function arcSettings() {
sleep 2
getmapSelection
fi
# Check for CPU Frequency Scaling
if [ "${CPUFREQ}" == "true" ]; then
# Select Governor for DSM
initConfigKey "addons.cpufreqscaling" "" "${USER_CONFIG_FILE}"
dialog --backtitle "$(backtitle)" --colors --title "CPU Frequency Scaling" \
--infobox "Generating Governor Table..." 3 40
governorSelection
fi
# Check for Custom Build
if [ "${AUTOMATED}" == "false" ]; then
# Select Addons
Expand All @@ -461,6 +453,16 @@ function arcSettings() {
initConfigKey "addons.cpuinfo" "" "${USER_CONFIG_FILE}"
initConfigKey "addons.storagepanel" "" "${USER_CONFIG_FILE}"
addonSelection
# Check for CPU Frequency Scaling
if [ "${CPUFREQ}" == "true" ]; then
# Select Governor for DSM
initConfigKey "addons.cpufreqscaling" "" "${USER_CONFIG_FILE}"
dialog --backtitle "$(backtitle)" --colors --title "CPU Frequency Scaling" \
--infobox "Generating Governor Table..." 3 40
governorSelection
else
deleteConfigKey "addons.cpufreqscaling" "${USER_CONFIG_FILE}"
fi
# Check for DT and HBA/Raid Controller
if [ "${PLATFORM}" != "epyc7002" ]; then
if [ "${DT}" == "true" ] && [ "${EXTERNALCONTROLLER}" == "true" ]; then
Expand Down

0 comments on commit 5e7e62b

Please sign in to comment.