diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index ef90e047..4d7609fd 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -868,6 +868,7 @@ function boot() { --infobox "Booting DSM...\nPlease stay patient!" 4 25 sleep 2 bootDSM + exit 0 } ############################################################################### diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index 27ad8132..6ceab6bd 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -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 } \ No newline at end of file