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 vidcontrol -s 2 # Switch to a VTY with no kernel messages
18 # Init will clean these processes up if/when the system
20 touch /tmp/bsdinstall_log
21 tail -f /tmp/bsdinstall_log > /dev/ttyv2 &
22 /usr/libexec/getty autologin ttyv3
23 EXTERNAL_VTY_STARTED=1
24 trap "vidcontrol -s 1" EXIT
27 # Serial or other console
29 echo "Welcome to FreeBSD!"
31 echo "Please choose the appropriate terminal type for your system."
32 echo "Common console types are:"
33 echo " ansi Standard ANSI terminal"
34 echo " vt100 VT100 or compatible terminal"
35 echo " xterm xterm terminal emulator (or compatible)"
37 echo -n "Console type [vt100]: "
43 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
47 # If not netbooting, have the installer configure the network
48 dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
49 if [ ${dlv:=0} -eq 0 -a ! -f /etc/diskless ]; then
50 BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT
53 trap true SIGINT # Ignore cntrl-C here
56 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
61 $DIALOG_CANCEL) # Live CD
64 $DIALOG_EXTRA) # Shell
66 echo "When finished, type 'exit' to return to the installer."