mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 10:29:15 +00:00
We don't need to go back to the first screen again - optimize this.
This commit is contained in:
parent
31c448c24a
commit
5134cfac45
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6115
@ -13,7 +13,7 @@
|
||||
# putting your name on top after doing something trivial like reindenting
|
||||
# it, just to make it look like you wrote it!).
|
||||
#
|
||||
# $Id: bininst.sh,v 1.3 1995/01/28 01:18:41 jkh Exp $
|
||||
# $Id: bininst.sh,v 1.4 1995/01/28 01:20:18 jkh Exp $
|
||||
|
||||
if [ "${_BININST_LOADED_}" = "yes" ]; then
|
||||
error "Error, $0 loaded more than once!"
|
||||
@ -39,7 +39,6 @@ set_defaults()
|
||||
{
|
||||
network_set_defaults
|
||||
media_set_defaults
|
||||
INSTALLING="yes"
|
||||
mkdir -p ${TMP}
|
||||
cp /stand/etc/* /etc
|
||||
}
|
||||
@ -80,19 +79,17 @@ Enjoy FreeBSD 2.0!
|
||||
welcome
|
||||
set_defaults
|
||||
|
||||
while [ "${INSTALLING}" = "yes" ]; do
|
||||
if media_select_distribution; then
|
||||
if media_chose; then
|
||||
for xx in ${MEDIA_DISTRIBUTIONS}; do
|
||||
MEDIA_DISTRIBUTION=`eval echo \`echo $xx\``
|
||||
media_install_set
|
||||
done
|
||||
fi
|
||||
else
|
||||
do_last_config
|
||||
INSTALLING="no"
|
||||
if media_select_distribution; then
|
||||
if media_chose_method; then
|
||||
for xx in ${MEDIA_DISTRIBUTIONS}; do
|
||||
MEDIA_DISTRIBUTION=`eval echo \`echo $xx\``
|
||||
media_install_set
|
||||
done
|
||||
fi
|
||||
done
|
||||
else
|
||||
do_last_config
|
||||
fi
|
||||
|
||||
echo; echo "Spawning shell. Exit shell to continue with new bindist."
|
||||
echo "Progress <installation completed>" > /dev/ttyv1
|
||||
/stand/sh
|
||||
|
@ -10,7 +10,7 @@
|
||||
# putting your name on top after doing something trivial like reindenting
|
||||
# it, just to make it look like you wrote it!).
|
||||
#
|
||||
# $Id: instdist.sh,v 1.6 1995/01/29 01:35:24 jkh Exp $
|
||||
# $Id: instdist.sh,v 1.7 1995/01/30 22:52:50 jkh Exp $
|
||||
|
||||
if [ "${_INSTINST_SH_LOADED_}" = "yes" ]; then
|
||||
return 0
|
||||
@ -287,7 +287,7 @@ media_install_set()
|
||||
if ! media_set_tmpdir; then return; fi
|
||||
if ! media_cd_tmpdir; then return; fi
|
||||
if ! echo ${MEDIA_DEVICE} | grep -q -v 'ftp://'; then
|
||||
message "Fetching distribution using ncftp.\nUse ALT-F2 to see output, ALT-F1 to return."
|
||||
message "Fetching ${MEDIA_DISTRIBUTION} distribution over ftp.\nUse ALT-F2 to see output, ALT-F1 to return."
|
||||
mkdir -p ${MEDIA_DISTRIBUTION}
|
||||
if ! ncftp ${MEDIA_DEVICE}/${MEDIA_DISTRIBUTION}/* < /dev/null > /dev/ttyv1 2>&1; then
|
||||
error "Couldn't fetch ${MEDIA_DISTRIBUTION} distribution from\n${MEDIA_DEVICE}!"
|
||||
@ -314,22 +314,22 @@ media_select_distribution()
|
||||
dialog --title "Please specify a distribution to load" \
|
||||
--checklist \
|
||||
"FreeBSD is separated into a number of distributions for ease of\n\
|
||||
installation. With repeated passes through this screen, you'll be\n\
|
||||
given the chance to load one or all of them. Mandatory distributions\n\
|
||||
MUST be loaded! Please also note that the secrdist is NOT FOR EXPORT\n\
|
||||
from the U.S. Please don't endanger U.S. ftp sites by getting it\n\
|
||||
illegally, thanks! When finished, select <Cancel>." \
|
||||
installation. Please select the distributions you wish to load, any\n\
|
||||
distributions already marked being MANDATORY - please do not\n\
|
||||
unselect them! Please also note that DES (encryption) code is NOT\n\
|
||||
FOR EXPORT from the U.S. Please don't endanger U.S. ftp sites by\n\
|
||||
getting it illegally, thanks! When finished, select <Cancel>." \
|
||||
-1 -1 10 \
|
||||
"bin" "Binary base files (mandatory - ${BINSIZE})" ON \
|
||||
"games" "Games and other frivolities (optional - ${GAMESIZE})" OFF \
|
||||
"info" "GNU info files (optional - ${INFOSIZE})" OFF \
|
||||
"manpages" "Manual pages (optional - ${MANSIZE})" OFF \
|
||||
"proflibs" "Profiled libraries (optional - ${PROFSIZE})" OFF \
|
||||
"dict" "Spelling checker dictionary files (optional - ${DICTSIZE})" OFF \
|
||||
"src" "Sources for everything but DES (optional - ${SRCSIZE})" OFF \
|
||||
"secure" "DES encryption code (and sources) (optional - ${SECRSIZE})" OFF \
|
||||
"compat1xdist" "FreeBSD 1.x binary compatability (optional - ${COMPATSIZE})" OFF \
|
||||
"XFree86-3.1" "The XFree86 3.1 distribution (optional - ${X11SIZE})" OFF \
|
||||
"games" "Games and other frivolities (${GAMESIZE})" OFF \
|
||||
"info" "GNU info files (${INFOSIZE})" OFF \
|
||||
"manpages" "Manual pages (${MANSIZE})" OFF \
|
||||
"proflibs" "Profiled libraries (${PROFSIZE})" OFF \
|
||||
"dict" "Spelling checker dictionary files (${DICTSIZE})" OFF \
|
||||
"src" "Sources for all but DES (${SRCSIZE})" OFF \
|
||||
"secure" "DES code (and sources) (${SECRSIZE})" OFF \
|
||||
"compat1xdist" "FreeBSD 1.x binary compatability (${COMPATSIZE})" OFF \
|
||||
"XFree86-3.1" "The XFree86 3.1 distribution (${X11SIZE})" OFF \
|
||||
2> ${TMP}/menu.tmp.$$
|
||||
RETVAL=$?
|
||||
MEDIA_DISTRIBUTIONS=`cat ${TMP}/menu.tmp.$$`
|
||||
@ -359,7 +359,7 @@ to the mount point). The directory you enter should be the
|
||||
|
||||
# Get values into $MEDIA_TYPE and $MEDIA_DEVICE. Call network initialization
|
||||
# if necessary.
|
||||
media_chose()
|
||||
media_chose_method()
|
||||
{
|
||||
while [ "${MEDIA_DEVICE}" = "" ]; do
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user