-bsddialog --backtitle "FreeBSD Installer" --title "Welcome" --extra-button --extra-label "Shell" --ok-label "Install" --cancel-label "Live CD" --yesno "Welcome to FreeBSD! Would you like to begin an installation or use the live CD?" 0 0
-
-case $? in
-$BSDDIALOG_OK) # Install
- # If not netbooting, have the installer configure the network
- bsddialog --backtitle "FreeBSD Installer" --title "Complete" --ok-label "Reboot" --extra-button --extra-label "Shutdown" --cancel-label "Live CD" --yesno "Installation of FreeBSD complete! Would you like to reboot into the installed system now?" 0 0
-
- case $? in
- $BSDDIALOG_OK) # Reboot
- reboot
- ;;
- $BSDDIALOG_EXTRA) # Shutdown
- shutdown -p now
- ;;
- $BSDDIALOG_CANCEL) # Live CD
- exit 0
- ;;
- esac
- else
- . /etc/rc.local
- fi
- ;;
-$BSDDIALOG_CANCEL) # Live CD
- exit 0
- ;;
-$BSDDIALOG_EXTRA) # Shell
- clear
- echo "When finished, type 'exit' to return to the installer."