From cee2d7d26337085415cfc2ad4dc4877f2f5d67ca Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 15 Nov 2024 15:46:33 +0100 Subject: [PATCH] tree: cleanup Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 13 ------------- files/initrd/opt/arc/include/update.sh | 6 +++--- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index ddd27491..fa9b5c2c 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -671,19 +671,6 @@ function arcSummary() { # Building Loader function make() { STEP="build" - ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}" 2>/dev/null)" - SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")" - BOOTMODE="$(readConfigKey "arc.mode" "${USER_CONFIG_FILE}")" - if [ "${BOOTMODE}" != "automated" ] && [ "${ARCOFFLINE}" != "true" ] && [[ "${ARCPATCH}" != "true" || -z "${ARCCONF}" ]]; then - if ! curl -skL "https://arc.auxxxilium.tech/check.yml" -o "${TMP_PATH}/check.yml" 2>/dev/null; then - SN=$(generateSerial "${MODEL}" "false") - else - if grep -q "${SN}" "${TMP_PATH}/check.yml"; then - SN=$(generateSerial "${MODEL}" "false") - fi - fi - writeConfigKey "sn" "${SN}" "${USER_CONFIG_FILE}" - fi # Read Model Config MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")" PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")" diff --git a/files/initrd/opt/arc/include/update.sh b/files/initrd/opt/arc/include/update.sh index 86c99ac0..3279e3d7 100755 --- a/files/initrd/opt/arc/include/update.sh +++ b/files/initrd/opt/arc/include/update.sh @@ -447,7 +447,7 @@ function dependenciesUpdate() { BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" FAILED="false" dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \ - --infobox "Updating Dependencies..." 0 0 + --infobox "Updating Dependencies..." 3 40 sleep 2 updateAddons [ $? -ne 0 ] && FAILED="true" @@ -463,11 +463,11 @@ function dependenciesUpdate() { [ $? -ne 0 ] && FAILED="true" if [ "${FAILED}" == "true" ]; then dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \ - --infobox "Update failed!\nTry again later." 0 0 + --infobox "Update failed! Try again later." 3 40 sleep 3 elif [ "${FAILED}" == "false" ]; then dialog --backtitle "$(backtitle)" --title "Update Dependencies" --aspect 18 \ - --infobox "Update successful!" 0 0 + --infobox "Update successful!" 3 40 writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}" BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" sleep 3