mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 21:49:52 +07:00
tree: cleanup
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
8bc3393d55
commit
390f5b11db
@ -1992,7 +1992,7 @@ function rebootMenu() {
|
|||||||
dialog --backtitle "$(backtitle)" --title "Power Menu" \
|
dialog --backtitle "$(backtitle)" --title "Power Menu" \
|
||||||
--infobox "Option: ${REDEST} selected ...!" 3 50
|
--infobox "Option: ${REDEST} selected ...!" 3 50
|
||||||
if [ "${REDEST}" == "poweroff" ]; then
|
if [ "${REDEST}" == "poweroff" ]; then
|
||||||
exec poweroff
|
poweroff
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${REDEST}" == "shell" ]; then
|
elif [ "${REDEST}" == "shell" ]; then
|
||||||
clear
|
clear
|
||||||
|
@ -812,7 +812,7 @@ if [ "${ARCMODE}" == "update" ]; then
|
|||||||
dialog --backtitle "$(backtitle)" --title "Arc Update" \
|
dialog --backtitle "$(backtitle)" --title "Arc Update" \
|
||||||
--infobox "Update is not possible in Offline Mode!" 5 40
|
--infobox "Update is not possible in Offline Mode!" 5 40
|
||||||
sleep 3
|
sleep 3
|
||||||
exec reboot
|
reboot
|
||||||
fi
|
fi
|
||||||
elif [ "${ARCMODE}" == "automated" ]; then
|
elif [ "${ARCMODE}" == "automated" ]; then
|
||||||
# Check for Custom Build
|
# Check for Custom Build
|
||||||
|
@ -251,7 +251,7 @@ if [ "${DIRECTBOOT}" == "true" ]; then
|
|||||||
grub-editenv ${USER_GRUBENVFILE} set next_entry="direct"
|
grub-editenv ${USER_GRUBENVFILE} set next_entry="direct"
|
||||||
_bootwait || true
|
_bootwait || true
|
||||||
echo -e "\033[1;34mReboot with Directboot\033[0m"
|
echo -e "\033[1;34mReboot with Directboot\033[0m"
|
||||||
exec reboot
|
reboot
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${DIRECTBOOT}" == "false" ]; then
|
elif [ "${DIRECTBOOT}" == "false" ]; then
|
||||||
grub-editenv ${USER_GRUBENVFILE} unset dsm_cmdline
|
grub-editenv ${USER_GRUBENVFILE} unset dsm_cmdline
|
||||||
@ -326,7 +326,6 @@ elif [ "${DIRECTBOOT}" == "false" ]; then
|
|||||||
|
|
||||||
echo -e "\033[1;37mBooting DSM...\033[0m"
|
echo -e "\033[1;37mBooting DSM...\033[0m"
|
||||||
# Boot to DSM
|
# Boot to DSM
|
||||||
[ "${KERNELLOAD}" == "kexec" ] && exec kexec -e || exec poweroff
|
[ "${KERNELLOAD}" == "kexec" ] && kexec -e || poweroff
|
||||||
fi
|
exit 0
|
||||||
|
fi
|
||||||
exit 0
|
|
Loading…
Reference in New Issue
Block a user