From 814fda8991e5c520f80f06dabfe5b456a425fa93 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Tue, 27 Aug 2024 11:35:13 -0400 Subject: [PATCH] update: fix Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 1 + files/initrd/opt/arc/update.sh | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index a5bb7127..33ad4dcc 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -30,6 +30,7 @@ LKM="$(readConfigKey "lkm" "${USER_CONFIG_FILE}")" if [ -n "${MODEL}" ]; then DT="$(readConfigKey "platforms.${PLATFORM}.dt" "${P_FILE}")" PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")" + NANOVER="$(readConfigKey "nanover" "${USER_CONFIG_FILE}")" ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}" 2>/dev/null)" fi diff --git a/files/initrd/opt/arc/update.sh b/files/initrd/opt/arc/update.sh index f1a15501..9295a38f 100755 --- a/files/initrd/opt/arc/update.sh +++ b/files/initrd/opt/arc/update.sh @@ -22,15 +22,17 @@ ARCKEY="$(readConfigKey "arc.key" "${USER_CONFIG_FILE}")" # Get DSM Data from Config MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")" -PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")" +PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")" +LKM="$(readConfigKey "lkm" "${USER_CONFIG_FILE}")" if [ -n "${MODEL}" ]; then - PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")" DT="$(readConfigKey "platforms.${PLATFORM}.dt" "${P_FILE}")" + PRODUCTVER="$(readConfigKey "productver" "${USER_CONFIG_FILE}")" + NANOVER="$(readConfigKey "nanover" "${USER_CONFIG_FILE}")" + ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}" 2>/dev/null)" fi -# Get Config/Build Status +# Get Config Status CONFDONE="$(readConfigKey "arc.confdone" "${USER_CONFIG_FILE}")" -BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" # Get Keymap and Timezone Config ntpCheck @@ -49,7 +51,11 @@ function backtitle() { fi BACKTITLE="${ARC_TITLE} | " BACKTITLE+="${MODEL} | " - BACKTITLE+="${PRODUCTVER} | " + if [ -n "${NANOVER}" ]; then + BACKTITLE+="${PRODUCTVER}.${NANOVER} | " + else + BACKTITLE+="${PRODUCTVER} | " + fi BACKTITLE+="${IPCON} | " BACKTITLE+="Patch: ${ARCPATCH} | " BACKTITLE+="Config: ${CONFDONE} | " @@ -73,8 +79,6 @@ function arcUpdate() { # Ask for Boot dialog --backtitle "$(backtitle)" --title "Update Loader" --aspect 18 \ --infobox "Update successful!" 0 0 - writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}" - BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" if [ "${CONFDONE}" == "true" ] && [ ! -f "${PART3_PATH}/automated" ]; then echo "${ARC_VERSION}-${MODEL}-${PRODUCTVER}-custom" >"${PART3_PATH}/automated" fi