tree: cleanup

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-11-16 10:42:03 +01:00
parent 8bc3393d55
commit 390f5b11db
3 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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
[ "${KERNELLOAD}" == "kexec" ] && kexec -e || poweroff
exit 0
fi
exit 0