From c287e33aab893aa5f6090f2ed7f26e3b2887efa4 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Wed, 13 Nov 2024 18:55:07 +0100 Subject: [PATCH] arc: fix logic Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc-functions.sh | 6 +++--- files/initrd/opt/arc/arc.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 7f61a193..66b55a5c 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -2295,19 +2295,19 @@ function checkHardwareID() { cp -f "${S_FILE}" "${S_FILE}.bak" if curl -skL "https://arc.auxxxilium.tech?hwid=${HWID}&userid=${USERID}" -o "${S_FILE}" 2>/dev/null; then dialog --backtitle "$(backtitle)" --title "HardwareID" \ - --infobox "HardwareID: ${HWID}\nYour HardwareID is registered to UserID: ${USERID}!" 6 70 + --infobox "HardwareID: ${HWID}\nYour HardwareID is registered to UserID: ${USERID}!" 4 70 writeConfigKey "arc.hwid" "${HWID}" "${USER_CONFIG_FILE}" writeConfigKey "arc.userid" "${USERID}" "${USER_CONFIG_FILE}" else dialog --backtitle "$(backtitle)" --title "HardwareID" \ - --infobox "HardwareID: Your HardwareID couldn't be verified!" 6 50 + --infobox "HardwareID: Your HardwareID couldn't be verified!" 4 50 USERID="" writeConfigKey "arc.hwid" "" "${USER_CONFIG_FILE}" writeConfigKey "arc.userid" "" "${USER_CONFIG_FILE}" fi else dialog --backtitle "$(backtitle)" --title "HardwareID" \ - --infobox "HardwareID: Your HardwareID isn't registered!" 6 50 + --infobox "HardwareID: Your HardwareID isn't registered!" 4 50 USERID="" writeConfigKey "arc.hwid" "" "${USER_CONFIG_FILE}" writeConfigKey "arc.userid" "" "${USER_CONFIG_FILE}" diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index f2f799d5..e9defb4a 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -89,13 +89,13 @@ function backtitlep() { # Model Selection function arcModel() { STEP="model" - dialog --backtitle "$(backtitlep)" --title "Model" \ - --infobox "Reading Models..." 3 25 - if [ ! -f "${S_FILE}" ] || [ ! -f "${P_FILE}" ]; then + if [ ! -f "${S_FILE}" ] || [ ! -f "${P_FILE}" ]; then updateConfigs fi # Check for Hardware ID checkHardwareID + dialog --backtitle "$(backtitlep)" --title "Model" \ + --infobox "Reading Models..." 3 25 # Loop menu RESTRICT=1 PS="$(readConfigEntriesArray "platforms" "${P_FILE}" | sort)"