Deleted Added
full compact
rc.local (245706) rc.local (245742)
1#!/bin/sh
1#!/bin/sh
2# $FreeBSD: head/release/rc.local 245706 2013-01-21 01:55:54Z nwhitehorn $
2# $FreeBSD: head/release/rc.local 245742 2013-01-21 14:06:33Z nwhitehorn $
3
4: ${DIALOG_OK=0}
5: ${DIALOG_CANCEL=1}
6: ${DIALOG_HELP=2}
7: ${DIALOG_EXTRA=3}
8: ${DIALOG_ITEM_HELP=4}
9: ${DIALOG_ESC=255}
10

--- 30 unchanged lines hidden (view full) ---

41 echo
42 echo -n "Console type [vt100]: "
43 read TERM
44 TERM=${TERM:-vt100}
45fi
46export TERM
47
48if [ -f /etc/installerconfig ]; then
3
4: ${DIALOG_OK=0}
5: ${DIALOG_CANCEL=1}
6: ${DIALOG_HELP=2}
7: ${DIALOG_EXTRA=3}
8: ${DIALOG_ITEM_HELP=4}
9: ${DIALOG_ESC=255}
10

--- 30 unchanged lines hidden (view full) ---

41 echo
42 echo -n "Console type [vt100]: "
43 read TERM
44 TERM=${TERM:-vt100}
45fi
46export TERM
47
48if [ -f /etc/installerconfig ]; then
49 bsdinstall script /etc/installerconfig
50 if [ $? -eq 0]; then
49 if bsdinstall script /etc/installerconfig; then
51 dialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10
52 reboot
53 else
54 dialog --backtitle "FreeBSD Installer" --title "Error" --textbox /tmp/bsdinstall_log 0 0
55 fi
56 exit
57fi
58

--- 29 unchanged lines hidden ---
50 dialog --backtitle "FreeBSD Installer" --title "Complete" --no-cancel --ok-label "Reboot" --pause "Installation of FreeBSD complete! Rebooting in 10 seconds" 10 30 10
51 reboot
52 else
53 dialog --backtitle "FreeBSD Installer" --title "Error" --textbox /tmp/bsdinstall_log 0 0
54 fi
55 exit
56fi
57

--- 29 unchanged lines hidden ---