arc: fix SN if automated update and user set his own
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
@@ -414,6 +414,7 @@ function arcPatch() {
|
|||||||
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
ARCCONF="$(readConfigKey "${MODEL}.serial" "${S_FILE}")"
|
||||||
[ -n "${ARCCONF}" ] && SN="$(generateSerial "${MODEL}" "true")" || SN="$(generateSerial "${MODEL}" "false")"
|
[ -n "${ARCCONF}" ] && SN="$(generateSerial "${MODEL}" "true")" || SN="$(generateSerial "${MODEL}" "false")"
|
||||||
[ -n "${ARCCONF}" ] && writeConfigKey "arc.patch" "true" "${USER_CONFIG_FILE}" || writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
[ -n "${ARCCONF}" ] && writeConfigKey "arc.patch" "true" "${USER_CONFIG_FILE}" || writeConfigKey "arc.patch" "false" "${USER_CONFIG_FILE}"
|
||||||
|
writeConfigKey "sn" "${SN}" "${USER_CONFIG_FILE}"
|
||||||
elif [ "${ARCMODE}" = "config" ]; then
|
elif [ "${ARCMODE}" = "config" ]; then
|
||||||
dialog --clear --backtitle "$(backtitlep)" \
|
dialog --clear --backtitle "$(backtitlep)" \
|
||||||
--nocancel --title "SN/Mac Options"\
|
--nocancel --title "SN/Mac Options"\
|
||||||
@@ -458,8 +459,8 @@ function arcPatch() {
|
|||||||
done
|
done
|
||||||
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"
|
writeConfigKey "arc.patch" "user" "${USER_CONFIG_FILE}"
|
||||||
fi
|
fi
|
||||||
|
writeConfigKey "sn" "${SN}" "${USER_CONFIG_FILE}"
|
||||||
fi
|
fi
|
||||||
writeConfigKey "sn" "${SN}" "${USER_CONFIG_FILE}"
|
|
||||||
ARCPATCH="$(readConfigKey "arc.patch" "${USER_CONFIG_FILE}")"
|
ARCPATCH="$(readConfigKey "arc.patch" "${USER_CONFIG_FILE}")"
|
||||||
arcSettings
|
arcSettings
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user