8 : ${DIALOG_ITEM_HELP=4}
13 kbdcontrol -d >/dev/null 2>&1
15 # Syscons: use xterm, start interesting things on other VTYs
16 if [ ${MACHINE} = "pc98" ]; then
22 if [ -z "$EXTERNAL_VTY_STARTED" ]; then
23 # Init will clean these processes up if/when the system
25 touch /tmp/bsdinstall_log
26 tail -f /tmp/bsdinstall_log > /dev/ttyv2 &
27 /usr/libexec/getty autologin ttyv3 &
28 EXTERNAL_VTY_STARTED=1
31 # Serial or other console
33 echo "Welcome to FreeBSD!"
35 echo "Please choose the appropriate terminal type for your system."
36 echo "Common console types are:"
37 echo " ansi Standard ANSI terminal"
38 echo " vt100 VT100 or compatible terminal"
39 echo " xterm xterm terminal emulator (or compatible)"
40 echo " cons25w cons25w terminal"
42 echo -n "Console type [vt100]: "
48 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
52 # If not netbooting, have the installer configure the network
53 dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
54 if [ ${dlv:=0} -eq 0 -a ! -f /etc/diskless ]; then
55 BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT
58 trap true SIGINT # Ignore cntrl-C here
61 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
66 $DIALOG_CANCEL) # Live CD
69 $DIALOG_EXTRA) # Shell
71 echo "When finished, type 'exit' to return to the installer."