Deleted Added
full compact
auto (218799) auto (218947)
1#!/bin/sh
2#-
3# Copyright (c) 2011 Nathan Whitehorn
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

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

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
1#!/bin/sh
2#-
3# Copyright (c) 2011 Nathan Whitehorn
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:

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

19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26#
27# $FreeBSD: head/usr.sbin/bsdinstall/scripts/auto 218799 2011-02-18 14:54:34Z nwhitehorn $
27# $FreeBSD: head/usr.sbin/bsdinstall/scripts/auto 218947 2011-02-22 13:56:59Z nwhitehorn $
28
29echo "Begun Installation at $(date)" > $BSDINSTALL_LOG
30
31error() {
32 dialog --backtitle "FreeBSD Installer" --title "Abort" \
33 --no-label "Exit" --yes-label "Restart" --yesno \
34 "An installation step has been aborted. Would you like to restart the installation or exit the installer?" 0 0
35 if [ $? -ne 0 ]; then

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

45mkdir $BSDINSTALL_TMPETC
46
47trap true SIGINT # This section is optional
48bsdinstall keymap
49
50trap error SIGINT # Catch cntrl-C here
51bsdinstall hostname || error
52
28
29echo "Begun Installation at $(date)" > $BSDINSTALL_LOG
30
31error() {
32 dialog --backtitle "FreeBSD Installer" --title "Abort" \
33 --no-label "Exit" --yes-label "Restart" --yesno \
34 "An installation step has been aborted. Would you like to restart the installation or exit the installer?" 0 0
35 if [ $? -ne 0 ]; then

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

45mkdir $BSDINSTALL_TMPETC
46
47trap true SIGINT # This section is optional
48bsdinstall keymap
49
50trap error SIGINT # Catch cntrl-C here
51bsdinstall hostname || error
52
53LIB32=""
54[ `uname -p` = amd64 -o `uname -p` = powerpc64 ] && \
55 LIB32="lib32 \"32-bit compatibility\" on"
56
57DISTMENU="doc \"Additional documentation\" on \
58 games \"Games (fortune, etc.)\" on \
59 $LIB32 \
60 ports \"Ports tree\" on \
61 src \"System source code\" off"
62
63exec 3>&1
64EXTRA_DISTS=$(echo $DISTMENU | xargs dialog --backtitle "FreeBSD Installer" \
65 --title "Distribution Select" --nocancel --separate-output \
66 --checklist "Choose optional system components to install:" \
67 0 0 0 \
682>&1 1>&3)
69DISTRIBUTIONS="base.txz kernel.txz"
70for dist in $EXTRA_DISTS; do
71 export DISTRIBUTIONS="$DISTRIBUTIONS $dist.txz"
72done
73
53FETCH_DISTRIBUTIONS=""
54for dist in $DISTRIBUTIONS; do
55 if [ ! -f $BSDINSTALL_DISTDIR/$dist ]; then
56 FETCH_DISTRIBUTIONS="$FETCH_DISTRIBUTIONS $dist"
57 fi
58done
59
60if [ ! -z "$FETCH_DISTRIBUTIONS" -a ! -z $BSDINSTALL_CONFIGCURRENT ]; then

--- 132 unchanged lines hidden ---
74FETCH_DISTRIBUTIONS=""
75for dist in $DISTRIBUTIONS; do
76 if [ ! -f $BSDINSTALL_DISTDIR/$dist ]; then
77 FETCH_DISTRIBUTIONS="$FETCH_DISTRIBUTIONS $dist"
78 fi
79done
80
81if [ ! -z "$FETCH_DISTRIBUTIONS" -a ! -z $BSDINSTALL_CONFIGCURRENT ]; then

--- 132 unchanged lines hidden ---