mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 23:49:52 +07:00
arc/boot: add exit code
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
9f6ec3e219
commit
5c309ee4f0
@ -868,6 +868,7 @@ function boot() {
|
||||
--infobox "Booting DSM...\nPlease stay patient!" 4 25
|
||||
sleep 2
|
||||
bootDSM
|
||||
exit 0
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user