8 : ${DIALOG_ITEM_HELP=4}
11 kbdcontrol -d >/dev/null 2>&1
13 # Syscons: use xterm, start interesting things on other VTYs
16 if [ -z "$EXTERNAL_VTY_STARTED" ]; then
17 # Init will clean these processes up if/when the system
19 touch /tmp/bsdinstall_log
20 tail -f /tmp/bsdinstall_log > /dev/ttyv2 &
21 /usr/libexec/getty autologin ttyv3
22 EXTERNAL_VTY_STARTED=1
25 # Serial or other console
27 echo "Welcome to FreeBSD!"
29 echo "Please choose the appropriate terminal type for your system."
30 echo "Common console types are:"
31 echo " ansi Standard ANSI terminal"
32 echo " vt100 VT100 or compatible terminal"
33 echo " xterm xterm terminal emulator (or compatible)"
35 echo -n "Console type [vt100]: "
41 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
45 # If not netbooting, have the installer configure the network
46 dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
47 if [ ${dlv:=0} -eq 0 -a ! -f /etc/diskless ]; then
48 BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT
51 trap true SIGINT # Ignore cntrl-C here
54 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
59 $DIALOG_CANCEL) # Live CD
62 $DIALOG_EXTRA) # Shell
64 echo "When finished, type 'exit' to return to the installer."