arc-functions: ask for reboot after loader update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-08-25 10:30:08 +02:00
parent 3d67eea1b2
commit 271fb2e6e8

View File

@@ -933,6 +933,19 @@ function updateMenu() {
updateLoader "${TAG}"
writeConfigKey "arc.builddone" "false" "${USER_CONFIG_FILE}"
BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")"
# Ask for Reboot
dialog --clear --backtitle "$(backtitle)" --title "Update done"\
--no-cancel --menu "Reboot now?" 7 40 0 \
1 "Yes - Reboot Arc Loader now" \
2 "No - I want to update more" \
2>"${TMP_PATH}/resp"
resp=$(cat ${TMP_PATH}/resp)
[ -z "${resp}" ] && return 1
if [ ${resp} -eq 1 ]; then
rebootTo config
elif [ ${resp} -eq 2 ]; then
return 0
fi
;;
4)
# Ask for Tag