diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index f09dc338..37f97f1e 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -1992,7 +1992,7 @@ function rebootMenu() { dialog --backtitle "$(backtitle)" --title "Power Menu" \ --infobox "Option: ${REDEST} selected ...!" 3 50 if [ "${REDEST}" == "poweroff" ]; then - exec poweroff + poweroff exit 0 elif [ "${REDEST}" == "shell" ]; then clear diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index fa9b5c2c..7ca295c6 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -812,7 +812,7 @@ if [ "${ARCMODE}" == "update" ]; then dialog --backtitle "$(backtitle)" --title "Arc Update" \ --infobox "Update is not possible in Offline Mode!" 5 40 sleep 3 - exec reboot + reboot fi elif [ "${ARCMODE}" == "automated" ]; then # Check for Custom Build diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index 88074ea7..b5971b20 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -251,7 +251,7 @@ if [ "${DIRECTBOOT}" == "true" ]; then grub-editenv ${USER_GRUBENVFILE} set next_entry="direct" _bootwait || true echo -e "\033[1;34mReboot with Directboot\033[0m" - exec reboot + reboot exit 0 elif [ "${DIRECTBOOT}" == "false" ]; then grub-editenv ${USER_GRUBENVFILE} unset dsm_cmdline @@ -326,7 +326,6 @@ elif [ "${DIRECTBOOT}" == "false" ]; then echo -e "\033[1;37mBooting DSM...\033[0m" # Boot to DSM - [ "${KERNELLOAD}" == "kexec" ] && exec kexec -e || exec poweroff -fi - -exit 0 \ No newline at end of file + [ "${KERNELLOAD}" == "kexec" ] && kexec -e || poweroff + exit 0 +fi \ No newline at end of file