From 70c198c15786927398a763cd854b4f7d39bfebd0 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Wed, 4 Sep 2024 18:10:35 +0200 Subject: [PATCH] arc: fix more logic Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index a93455ca..222b1619 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -456,6 +456,8 @@ function arcVersion() { if [ ! -f "${ORI_ZIMAGE_FILE}" ] || [ ! -f "${ORI_RDGZ_FILE}" ]; then [ "${VALID}" == "true" ] && copyDSMFiles "${UNTAR_PAT_PATH}" 2>/dev/null fi + # Cleanup + [ -d "${UNTAR_PAT_PATH}" ] && rm -rf "${UNTAR_PAT_PATH}" if [ "${VALID}" == "true" ] && [ -f "${ORI_ZIMAGE_FILE}" ] && [ -f "${ORI_RDGZ_FILE}" ]; then dialog --backtitle "$(backtitle)" --title "Arc Config" \ --infobox "Reconfiguring Addons, Cmdline, Modules and Synoinfo" 3 60 @@ -493,6 +495,8 @@ function arcVersion() { else dialog --backtitle "$(backtitle)" --title "Arc Config" --aspect 18 \ --infobox "Arc Config failed!\nExit." 4 40 + writeConfigKey "arc.confdone" "false" "${USER_CONFIG_FILE}" + CONFDONE="$(readConfigKey "arc.confdone" "${USER_CONFIG_FILE}")" sleep 5 return 1 fi