arc: more logic rewrite

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-07 12:51:26 +02:00
parent 36ecfa5ca2
commit 5b917907ca
2 changed files with 7 additions and 3 deletions

View File

@ -2152,8 +2152,12 @@ function decryptMenu() {
writeConfigKey "arc.key" "" "${USER_CONFIG_FILE}" writeConfigKey "arc.key" "" "${USER_CONFIG_FILE}"
fi fi
fi fi
writeConfigKey "arc.confdone" "false" "${USER_CONFIG_FILE}" SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")"
CONFDONE="$(readConfigKey "arc.confdone" "${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}" writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
ARCKEY="$(readConfigKey "arc.key" "${USER_CONFIG_FILE}")" ARCKEY="$(readConfigKey "arc.key" "${USER_CONFIG_FILE}")"

View File

@ -502,7 +502,7 @@ function arcPatch() {
# Read Model Values # Read Model Values
PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")" PLATFORM="$(readConfigKey "platform" "${USER_CONFIG_FILE}")"
MODEL="$(readConfigKey "model" "${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 # Check for Custom Build
SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")" SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")"
if [ "${AUTOMATED}" == "true" ]; then if [ "${AUTOMATED}" == "true" ]; then