diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index 6c260ce9..a103c9e8 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -2152,8 +2152,12 @@ function decryptMenu() { writeConfigKey "arc.key" "" "${USER_CONFIG_FILE}" fi fi - writeConfigKey "arc.confdone" "false" "${USER_CONFIG_FILE}" - CONFDONE="$(readConfigKey "arc.confdone" "${USER_CONFIG_FILE}")" + SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")" + ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")" + if [ "${SN}" != "${ARCCONF}" ]; then + writeConfigKey "arc.confdone" "false" "${USER_CONFIG_FILE}" + CONFDONE="$(readConfigKey "arc.confdone" "${USER_CONFIG_FILE}")" + fi writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}" BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" ARCKEY="$(readConfigKey "arc.key" "${USER_CONFIG_FILE}")" diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index c17f5d33..eee8caac 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -502,7 +502,7 @@ function arcPatch() { # Read Model Values PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")" MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")" - ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}" 2>/dev/null)" + ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")" # Check for Custom Build SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")" if [ "${AUTOMATED}" == "true" ]; then