startbsdinstall (d577d6178bdeff86dbff0b954659ac5e23c17b2a) | startbsdinstall (a09af1b7fd95d9479954c5b8e96a126cad468424) |
---|---|
1#!/bin/sh 2 3: ${BSDDIALOG_OK=0} 4: ${BSDDIALOG_CANCEL=1} 5: ${BSDDIALOG_HELP=2} 6: ${BSDDIALOG_EXTRA=3} 7: ${BSDDIALOG_ESC=5} 8: ${BSDDIALOG_ERROR=255} --- 31 unchanged lines hidden (view full) --- 40 TERM=${TERM:-vt100} 41fi 42export TERM 43 44# Query terminal size; useful for serial lines. 45resizewin -z 46 47if [ -f /etc/installerconfig ]; then | 1#!/bin/sh 2 3: ${BSDDIALOG_OK=0} 4: ${BSDDIALOG_CANCEL=1} 5: ${BSDDIALOG_HELP=2} 6: ${BSDDIALOG_EXTRA=3} 7: ${BSDDIALOG_ESC=5} 8: ${BSDDIALOG_ERROR=255} --- 31 unchanged lines hidden (view full) --- 40 TERM=${TERM:-vt100} 41fi 42export TERM 43 44# Query terminal size; useful for serial lines. 45resizewin -z 46 47if [ -f /etc/installerconfig ]; then |
48 if bsdinstall script /etc/installerconfig; then | 48 if [ "$1" != "primary" ]; then 49 bsddialog --backtitle "FreeBSD Installer" --title "Installing" --msgbox "FreeBSD is being installed from a script; please use the primary console." 0 0 50 . "$0" 51 elif bsdinstall script /etc/installerconfig; then |
49 bsddialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10 50 reboot 51 else 52 bsddialog --backtitle "FreeBSD Installer" --title "Error" --textbox /tmp/bsdinstall_log 0 0 53 fi 54 exit 55fi 56 --- 41 unchanged lines hidden --- | 52 bsddialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10 53 reboot 54 else 55 bsddialog --backtitle "FreeBSD Installer" --title "Error" --textbox /tmp/bsdinstall_log 0 0 56 fi 57 exit 58fi 59 --- 41 unchanged lines hidden --- |