mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 00:49:52 +07:00
update: rewrite logic
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
8e2794c1bf
commit
f6e88b135b
@ -4,7 +4,9 @@ function updateLoader() {
|
|||||||
CONFDONE="$(readConfigKey "arc.confdone" "${USER_CONFIG_FILE}")"
|
CONFDONE="$(readConfigKey "arc.confdone" "${USER_CONFIG_FILE}")"
|
||||||
local ARC_BRANCH="$(readConfigKey "arc.branch" "${USER_CONFIG_FILE}")"
|
local ARC_BRANCH="$(readConfigKey "arc.branch" "${USER_CONFIG_FILE}")"
|
||||||
local ARCMODE="$(readConfigKey "arc.mode" "${USER_CONFIG_FILE}")"
|
local ARCMODE="$(readConfigKey "arc.mode" "${USER_CONFIG_FILE}")"
|
||||||
|
local ARCCONF="$(readConfigKey "${MODEL:-SA6400}.serial" "${S_FILE}")"
|
||||||
local TAG="${1}"
|
local TAG="${1}"
|
||||||
|
[ -n "${ARCCONF}" ] && cp -f "${S_FILE}" "${TMP_PATH}/bak.yml"
|
||||||
if [ -z "${TAG}" ]; then
|
if [ -z "${TAG}" ]; then
|
||||||
idx=0
|
idx=0
|
||||||
while [ ${idx} -le 5 ]; do # Loop 5 times, if successful, break
|
while [ ${idx} -le 5 ]; do # Loop 5 times, if successful, break
|
||||||
@ -67,6 +69,7 @@ function updateLoader() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
[ -n "${ARCCONF}" ] && cp -f "${TMP_PATH}/bak.yml" "${S_FILE}"
|
||||||
if [ "${ARCMODE}" == "update" ] && [ "${CONFDONE}" == "true" ]; then
|
if [ "${ARCMODE}" == "update" ] && [ "${CONFDONE}" == "true" ]; then
|
||||||
dialog --backtitle "$(backtitle)" --title "Update Loader" --aspect 18 \
|
dialog --backtitle "$(backtitle)" --title "Update Loader" --aspect 18 \
|
||||||
--infobox "Update successful! -> Reboot to automated Build Mode..." 5 80
|
--infobox "Update successful! -> Reboot to automated Build Mode..." 5 80
|
||||||
@ -453,8 +456,6 @@ function dependenciesUpdate() {
|
|||||||
[ $? -ne 0 ] && FAILED="true"
|
[ $? -ne 0 ] && FAILED="true"
|
||||||
updatePatches
|
updatePatches
|
||||||
[ $? -ne 0 ] && FAILED="true"
|
[ $? -ne 0 ] && FAILED="true"
|
||||||
updateConfigs
|
|
||||||
[ $? -ne 0 ] && FAILED="true"
|
|
||||||
updateLKMs
|
updateLKMs
|
||||||
[ $? -ne 0 ] && FAILED="true"
|
[ $? -ne 0 ] && FAILED="true"
|
||||||
updateOffline
|
updateOffline
|
||||||
|
Loading…
Reference in New Issue
Block a user