arc/boot: add exit code

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-31 16:58:01 +02:00
parent 9f6ec3e219
commit 5c309ee4f0
2 changed files with 2 additions and 2 deletions

View File

@ -868,6 +868,7 @@ function boot() {
--infobox "Booting DSM...\nPlease stay patient!" 4 25
sleep 2
bootDSM
exit 0
}
###############################################################################

View File

@ -201,7 +201,6 @@ function bootDSM () {
grub-editenv ${USER_GRUBENVFILE} set next_entry="direct"
echo -e "\033[1;34mReboot with Directboot\033[0m"
exec reboot
exit 0
elif [ "${DIRECTBOOT}" == "false" ]; then
grub-editenv ${USER_GRUBENVFILE} unset dsm_cmdline
grub-editenv ${USER_GRUBENVFILE} unset next_entry
@ -310,6 +309,6 @@ function bootDSM () {
# Boot to DSM
KERNELLOAD="$(readConfigKey "kernelload" "${USER_CONFIG_FILE}")"
[ "${KERNELLOAD}" == "kexec" ] && kexec -a -e || poweroff
exit 0
fi
exit 0
}