8 : ${DIALOG_ITEM_HELP=4}
13 # resolv.conf from DHCP ends up in here, so make sure the directory exists
14 mkdir /tmp/bsdinstall_etc
16 kbdcontrol -d >/dev/null 2>&1
18 # Syscons: use xterm, start interesting things on other VTYs
21 # Don't send ESC on function-key 62/63 (left/right command key)
22 kbdcontrol -f 62 '' > /dev/null 2>&1
23 kbdcontrol -f 63 '' > /dev/null 2>&1
25 if [ -z "$EXTERNAL_VTY_STARTED" ]; then
26 # Init will clean these processes up if/when the system
28 touch /tmp/bsdinstall_log
29 tail -f /tmp/bsdinstall_log > /dev/ttyv2 &
30 /usr/libexec/getty autologin ttyv3 &
31 EXTERNAL_VTY_STARTED=1
34 # Serial or other console
36 echo "Welcome to FreeBSD!"
38 echo "Please choose the appropriate terminal type for your system."
39 echo "Common console types are:"
40 echo " ansi Standard ANSI terminal"
41 echo " vt100 VT100 or compatible terminal"
42 echo " xterm xterm terminal emulator (or compatible)"
43 echo " cons25w cons25w terminal"
45 echo -n "Console type [vt100]: "
51 if [ -f /etc/installerconfig ]; then
52 if bsdinstall script /etc/installerconfig; then
53 dialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10
56 dialog --backtitle "FreeBSD Installer" --title "Error" --textbox /tmp/bsdinstall_log 0 0
61 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
65 # If not netbooting, have the installer configure the network
66 dlv=`/sbin/sysctl -n vfs.nfs.diskless_valid 2> /dev/null`
67 if [ ${dlv:=0} -eq 0 -a ! -f /etc/diskless ]; then
68 BSDINSTALL_CONFIGCURRENT=yes; export BSDINSTALL_CONFIGCURRENT
71 trap true SIGINT # Ignore cntrl-C here
74 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
79 $DIALOG_CANCEL) # Live CD
82 $DIALOG_EXTRA) # Shell
84 echo "When finished, type 'exit' to return to the installer."