8 : ${DIALOG_ITEM_HELP=4}
11 kbdcontrol -d >/dev/null 2>&1
16 # Serial or other console
18 echo "Welcome to FreeBSD!"
20 echo "Please choose the appropriate terminal type for your system."
21 echo "Common console types are:"
22 echo " ansi Standard ANSI terminal"
23 echo " vt100 VT100 or compatible terminal"
24 echo " xterm xterm terminal emulator (or compatible)"
26 echo -n "Console type [vt100]: "
32 dialog --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
36 # If not netbooting, have the installer configure the network
37 dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
38 if [ ${dlv:=0} -eq 0 -a ! -f /etc/diskless ]; then
39 BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT
42 trap true SIGINT # Ignore cntrl-C here
45 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
50 $DIALOG_CANCEL) # Live CD
53 $DIALOG_EXTRA) # Shell
55 echo "When finished, type 'exit' to return to the installer."