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
|
# 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
|
"poweroff")
|
||||||
;;
|
poweroff
|
||||||
255)
|
;;
|
||||||
clear
|
"alpine-shell")
|
||||||
exit
|
clear
|
||||||
;;
|
exit
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue