1994-11-06 05:07:41 +01:00
|
|
|
#!/stand/sh
|
|
|
|
#
|
|
|
|
# bininst - perform the last stage of installation by somehow getting
|
|
|
|
# a bindist onto the user's disk and unpacking it. The name bininst
|
|
|
|
# is actually something of a misnomer, since this utility will install
|
|
|
|
# more than just the bindist set.
|
|
|
|
#
|
1994-11-09 03:49:04 +01:00
|
|
|
# Written: November 11th, 1994
|
1994-11-06 05:07:41 +01:00
|
|
|
# Copyright (C) 1994 by Jordan K. Hubbard
|
|
|
|
#
|
|
|
|
# Permission to copy or use this software for any purpose is granted
|
1994-11-11 11:55:02 +01:00
|
|
|
# provided that this message stay intact, and at this location (e.g. no
|
|
|
|
# putting your name on top after doing something trivial like reindenting
|
|
|
|
# it, just to make it look like you wrote it!).
|
1994-11-06 05:07:41 +01:00
|
|
|
#
|
1994-11-18 11:05:47 +01:00
|
|
|
# $Id: bininst,v 1.40 1994/11/17 11:53:11 jkh Exp $
|
1994-11-07 07:23:07 +01:00
|
|
|
|
1994-11-16 08:51:45 +01:00
|
|
|
if [ "$_BININST_LOADED_" = "yes" ]; then
|
|
|
|
echo "Error, $0 loaded more than once!"
|
|
|
|
return 1
|
|
|
|
else
|
|
|
|
_BININST_LOADED_=yes
|
|
|
|
fi
|
1994-11-11 11:55:02 +01:00
|
|
|
|
1994-11-16 08:51:45 +01:00
|
|
|
# Set some useful variables
|
|
|
|
HOME=/; export HOME
|
1994-11-07 12:30:15 +01:00
|
|
|
TMP=/tmp
|
1994-11-11 11:55:02 +01:00
|
|
|
|
|
|
|
|
1994-11-16 08:51:45 +01:00
|
|
|
# Grab the miscellaneous functions.
|
1994-11-18 11:05:47 +01:00
|
|
|
. /stand/miscfuncs.sh
|
1994-11-06 05:07:41 +01:00
|
|
|
|
1994-11-16 08:51:45 +01:00
|
|
|
# Grab the installation routines
|
1994-11-18 11:05:47 +01:00
|
|
|
. /stand/instdist.sh
|
1994-11-11 11:55:02 +01:00
|
|
|
|
1994-11-16 08:51:45 +01:00
|
|
|
# Grab the network setup routines
|
1994-11-18 11:05:47 +01:00
|
|
|
. /stand/netinst.sh
|
1994-11-11 08:33:50 +01:00
|
|
|
|
|
|
|
# Deal with trigger-happy users.
|
|
|
|
trap interrupt 1 2 15
|
|
|
|
|
1994-11-16 08:51:45 +01:00
|
|
|
# set initial defaults
|
1994-11-06 05:07:41 +01:00
|
|
|
set_defaults() {
|
1994-11-16 08:51:45 +01:00
|
|
|
set_media_defaults
|
1994-11-10 00:02:11 +01:00
|
|
|
installing=1
|
1994-11-07 12:30:15 +01:00
|
|
|
mkdir -p ${TMP}
|
1994-11-08 12:14:45 +01:00
|
|
|
cp /stand/etc/* /etc
|
1994-11-06 05:07:41 +01:00
|
|
|
}
|
|
|
|
|
1994-11-07 14:43:27 +01:00
|
|
|
# Print welcome banner.
|
1994-11-06 05:07:41 +01:00
|
|
|
welcome() {
|
1994-11-10 06:27:57 +01:00
|
|
|
dialog --title "Welcome to FreeBSD!" $clear \
|
1994-11-16 08:51:45 +01:00
|
|
|
--msgbox \
|
|
|
|
"We're now ready to install one or more packed distribution
|
|
|
|
sets onto your machine. Installation may be done from tape,
|
|
|
|
CD, network (NFS or ftp over ethernet, SLIP or parallel port),
|
|
|
|
a DOS partition or DOS floppies. If you're installing over
|
|
|
|
the network, make sure your cables are plugged in and ready to
|
|
|
|
go. If you're installing from tape, CD or floppies, now would
|
|
|
|
be a good time to remember where you put the distribution
|
|
|
|
media! :-) If you're set up and ready to go, please press return!" 16 72
|
1994-11-06 05:07:41 +01:00
|
|
|
}
|
|
|
|
|
1994-11-08 08:24:51 +01:00
|
|
|
do_last_config()
|
|
|
|
{
|
1994-11-08 13:34:57 +01:00
|
|
|
dialog --title "Auf Wiedersehen!" \
|
1994-11-08 08:24:51 +01:00
|
|
|
--msgbox "We now come to the end of the installation. At this point in
|
|
|
|
time, there's nothing fancy here, but for the release we plan to
|
1994-11-08 12:14:45 +01:00
|
|
|
ask some additional questions about time zone setup, what sort of
|
|
|
|
mail client this host is, etc. We just ran out of time for ALPHA!
|
|
|
|
At the very least, you may wish to check out the 'tzsetup' command;
|
1994-11-09 01:10:04 +01:00
|
|
|
it will at least handle the first checklist item for you. \n
|
|
|
|
The login name \"root\" has no password. If you're new to UN*X, log
|
1994-11-09 03:49:04 +01:00
|
|
|
in as root when prompted for a user name and run vipw to add a new
|
1994-11-09 21:16:09 +01:00
|
|
|
user for yourself.
|
|
|
|
|
1994-11-16 08:51:45 +01:00
|
|
|
There are also many useful pre-compiled packages for ${DISTNAME}
|
|
|
|
available which you may wish to investigate. Look in:
|
|
|
|
|
|
|
|
ftp://ftp.freebsd.org/pub/FreeBSD/${DISTNAME}/packages
|
|
|
|
|
|
|
|
Any install-related comments to jkh@freebsd.org, phk@freebsd.org or
|
1994-11-17 12:53:14 +01:00
|
|
|
paul@freebsd.org." -1 -1
|
1994-11-08 08:24:51 +01:00
|
|
|
}
|
|
|
|
|
1994-11-06 05:07:41 +01:00
|
|
|
welcome
|
1994-11-07 07:23:07 +01:00
|
|
|
set_defaults
|
1994-11-06 05:07:41 +01:00
|
|
|
|
1994-11-07 07:23:07 +01:00
|
|
|
while [ $installing -eq 1 ]; do
|
1994-11-16 08:51:45 +01:00
|
|
|
if media_select_distribution; then
|
|
|
|
if media_chose; then
|
|
|
|
install_set
|
|
|
|
fi
|
1994-11-06 05:07:41 +01:00
|
|
|
else
|
1994-11-08 08:24:51 +01:00
|
|
|
do_last_config
|
1994-11-07 07:23:07 +01:00
|
|
|
installing=0
|
1994-11-06 05:07:41 +01:00
|
|
|
fi
|
|
|
|
done
|
1994-11-08 14:58:34 +01:00
|
|
|
echo; echo "Spawning shell. Exit shell to continue with new bindist."
|
1994-11-08 12:14:45 +01:00
|
|
|
echo "Progress <installation completed>" > /dev/ttyv1
|
1994-11-08 14:58:34 +01:00
|
|
|
/stand/sh
|
|
|
|
exit 20
|