rework end-screen

This commit is contained in:
LinuxSquare 2024-08-25 20:17:26 +02:00
parent 6756cfa6b5
commit e0b44cfe9c

View file

@ -450,14 +450,15 @@ EOT
# remove shell histories # remove shell histories
rm -f /root/.zsh_history rm -f /root/.zsh_history
dialog --stdout --clear --cr-wrap --no-collapse --yes-label "Reboot" --no-label "Alpine shell" --yesno "\n Installation finished" 7 50 selected_option=$(dialog --output-fd 1 --menu "What would you like to do?" 10 70 5 reboot "Reboot into your newly installed system" poweroff "Shut down the current live system" alpine-shell "Switch to an interactive shell")
case $? in case "$selected_option" in
0) reboot ;; "reboot")
1) reboot
clear
exit
;; ;;
255) "poweroff")
poweroff
;;
"alpine-shell")
clear clear
exit exit
;; ;;