mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Allow the user to use the live environment post-installation, as well
as improving error handling.
This commit is contained in:
parent
23724537d0
commit
7c3d04b87b
1 changed files with 5 additions and 2 deletions
|
|
@ -17,8 +17,11 @@ $DIALOG_OK) # Install
|
|||
BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT
|
||||
trap true SIGINT # Ignore cntrl-C here
|
||||
bsdinstall
|
||||
dialog --backtitle "FreeBSD Installer" --title "Complete" --msgbox "Installation of FreeBSD complete! The system will now reboot." 0 0
|
||||
reboot
|
||||
if [ $? -eq 0 ]; then
|
||||
dialog --backtitle "FreeBSD Installer" --title "Complete" --yes-label "Reboot" --no-label "Live CD" --yesno "Installation of FreeBSD complete! Would you like to reboot into the installed system now?" 0 0 && reboot
|
||||
else
|
||||
. /etc/rc.local
|
||||
fi
|
||||
;;
|
||||
$DIALOG_CANCEL) # Live CD
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue