rework end-screen
This commit is contained in:
parent
6756cfa6b5
commit
e0b44cfe9c
1 changed files with 12 additions and 11 deletions
|
@ -450,17 +450,18 @@ EOT
|
|||
# remove shell histories
|
||||
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
|
||||
case $? in
|
||||
0) reboot ;;
|
||||
1)
|
||||
clear
|
||||
exit
|
||||
;;
|
||||
255)
|
||||
clear
|
||||
exit
|
||||
;;
|
||||
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 "$selected_option" in
|
||||
"reboot")
|
||||
reboot
|
||||
;;
|
||||
"poweroff")
|
||||
poweroff
|
||||
;;
|
||||
"alpine-shell")
|
||||
clear
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue