bsdinstall: Only show menu if there are more items to be installed
MFC after: 3 days Obtained from: Rubicon Communications, LLC ("Netgate") Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
c384a27805
commit
95f0da5be1
@ -157,16 +157,18 @@ if [ -f $BSDINSTALL_DISTDIR/MANIFEST ]; then
|
||||
DISTMENU=`awk -F'\t' '!/^(kernel\.txz|base\.txz)/{print $1,$5,$6}' $BSDINSTALL_DISTDIR/MANIFEST`
|
||||
DISTMENU="$(echo ${DISTMENU} | sed -E 's/\.txz//g')"
|
||||
|
||||
exec 3>&1
|
||||
EXTRA_DISTS=$( eval dialog \
|
||||
--backtitle \"FreeBSD Installer\" \
|
||||
--title \"Distribution Select\" --nocancel --separate-output \
|
||||
--checklist \"Choose optional system components to install:\" \
|
||||
0 0 0 $DISTMENU \
|
||||
2>&1 1>&3 )
|
||||
for dist in $EXTRA_DISTS; do
|
||||
export DISTRIBUTIONS="$DISTRIBUTIONS $dist.txz"
|
||||
done
|
||||
if [ -n "$DISTMENU" ]; then
|
||||
exec 3>&1
|
||||
EXTRA_DISTS=$( eval dialog \
|
||||
--backtitle \"FreeBSD Installer\" \
|
||||
--title \"Distribution Select\" --nocancel --separate-output \
|
||||
--checklist \"Choose optional system components to install:\" \
|
||||
0 0 0 $DISTMENU \
|
||||
2>&1 1>&3 )
|
||||
for dist in $EXTRA_DISTS; do
|
||||
export DISTRIBUTIONS="$DISTRIBUTIONS $dist.txz"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
||||
FETCH_DISTRIBUTIONS=""
|
||||
|
Loading…
Reference in New Issue
Block a user