mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 00:49:52 +07:00
arc: more logic rewrite
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
36ecfa5ca2
commit
5b917907ca
@ -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}")"
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user