1993-08-11 14:51:37 +02:00
|
|
|
|
HOME=/
|
|
|
|
|
PATH=:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:
|
|
|
|
|
TERM=pc3 # terminal emulator, for elvis
|
|
|
|
|
TERMCAP="\
|
|
|
|
|
pc3|ibmpc3:li#25:co#80:am:bs:bw:eo:cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:\
|
|
|
|
|
do=\E[B:ho=\E[;H:nd=\E[C:up=\E[A:so=\E[7m:se=\E[0m:us=\E[4m:ue=\E[0m:\
|
|
|
|
|
:ac=l\332q\304k\277x\263j\331m\300w\302u\264v\301t\303n\305:\
|
|
|
|
|
:kb=^h:kh=\E[Y:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:"
|
1993-08-12 09:14:23 +02:00
|
|
|
|
OPSYSTEM=FreeBSD
|
|
|
|
|
RELEASE="1.0 BETA"
|
1993-08-11 14:51:37 +02:00
|
|
|
|
export TERMCAP
|
|
|
|
|
export PATH
|
|
|
|
|
export TERM
|
|
|
|
|
export HOME
|
1993-08-12 09:14:23 +02:00
|
|
|
|
echo "${OPSYSTEM} Base System Release ${RELEASE}"
|
1993-08-11 14:51:37 +02:00
|
|
|
|
echo ""
|
1993-08-12 09:14:23 +02:00
|
|
|
|
echo "Congratulations, you've got ${OPSYSTEM} on the hard disk!"
|
1993-08-11 14:51:37 +02:00
|
|
|
|
echo ""
|
|
|
|
|
echo "To finish installation:"
|
|
|
|
|
echo "Pick a temporary directory by running set_tmp_dir. make sure it's"
|
|
|
|
|
echo "in a place with lots of space, probably under /usr."
|
|
|
|
|
echo "Then, load the remaining distribution files into that temporary"
|
|
|
|
|
echo "directory by issuing one of the following commands:"
|
|
|
|
|
echo " load_fd"
|
|
|
|
|
echo " load_qic_tape"
|
|
|
|
|
echo " load_scsi_tape"
|
|
|
|
|
echo "or by fetching the files with ftp (see the installation notes for"
|
|
|
|
|
echo "information on how to do that)."
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Once this is complete, extract the distribution files by issuing the"
|
|
|
|
|
echo "command 'extract <distribution>' where <distribution> is the base name"
|
1993-08-12 09:14:23 +02:00
|
|
|
|
echo "of the distribution files, e.g. 'base10'."
|
1993-08-11 14:51:37 +02:00
|
|
|
|
echo ""
|
|
|
|
|
echo "Once all of the filesets you wish to install have been extracted,"
|
|
|
|
|
echo "enter the command 'configure' to finish setting up the system"
|
|
|
|
|
echo " "
|
1993-08-12 09:14:23 +02:00
|
|
|
|
echo "If you should wish to uninstall ${OPSYSTEM}, delete the partition by using the "
|
1993-08-11 14:51:37 +02:00
|
|
|
|
echo " DOS 5 FDISK program. If installed on the entire drive, use the FDISK/MBR"
|
1993-08-12 09:14:23 +02:00
|
|
|
|
echo " to remove the ${OPSYSTEM} bootstrap from the drive."
|
1993-08-11 14:51:37 +02:00
|
|
|
|
echo 'erase ^?, werase ^H, kill ^U, intr ^C'
|
|
|
|
|
stty newcrt werase intr kill erase 9600
|
|
|
|
|
mount -at ufs
|
|
|
|
|
update
|
|
|
|
|
umask 0
|
|
|
|
|
set_tmp_dir()
|
|
|
|
|
{
|
|
|
|
|
def_tmp_dir=`pwd`
|
|
|
|
|
if [ "$def_tmp_dir" = "/" ]; then
|
|
|
|
|
def_tmp_dir=/usr/distrib
|
|
|
|
|
fi
|
|
|
|
|
echo -n "what dir should be used for temporary files? [$def_tmp_dir] "
|
|
|
|
|
read tmp_dir
|
|
|
|
|
if [ "$tmp_dir" = "" ]; then
|
|
|
|
|
tmp_dir=$def_tmp_dir
|
|
|
|
|
fi
|
|
|
|
|
if [ ! -d "$tmp_dir" ]; then
|
|
|
|
|
/bin/rm -rf $tmp_dir
|
|
|
|
|
mkdir -p $tmp_dir
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
tmp_dir()
|
|
|
|
|
{
|
|
|
|
|
if [ "$tmp_dir" = "" ]; then
|
|
|
|
|
set_tmp_dir
|
|
|
|
|
fi
|
|
|
|
|
cd $tmp_dir
|
|
|
|
|
}
|
|
|
|
|
load_fd()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
|
|
|
|
which=
|
|
|
|
|
while [ "$which" != "a" -a "$which" != "b" ]; do
|
|
|
|
|
echo -n "read from which floppy drive? [a or b] "
|
|
|
|
|
read which
|
|
|
|
|
done
|
|
|
|
|
while echo -n "Insert floppy (hit ^C to terminate, enter to load): "
|
|
|
|
|
do
|
|
|
|
|
read foo
|
|
|
|
|
mread "$which:*.*" .
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
load_qic_tape()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
|
|
|
|
echo -n "Insert tape into QIC tape drive and hit return to continue: "
|
|
|
|
|
read foo
|
|
|
|
|
tar xvf /dev/rwt0
|
|
|
|
|
}
|
|
|
|
|
load_scsi_tape()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
|
|
|
|
echo -n "Insert tape into SCSI tape drive and hit return to continue: "
|
|
|
|
|
read foo
|
|
|
|
|
tar xvf /dev/nrst0
|
|
|
|
|
}
|
|
|
|
|
extract()
|
|
|
|
|
{
|
|
|
|
|
tmp_dir
|
|
|
|
|
echo -n "Would you like to be verbose about this? [n] "
|
|
|
|
|
read verbose
|
|
|
|
|
case $verbose in
|
|
|
|
|
y*|Y*)
|
|
|
|
|
tarverbose=--verbose
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
tarverbose=
|
|
|
|
|
;;
|
|
|
|
|
esac
|
1993-08-26 05:23:20 +02:00
|
|
|
|
#XXX ugly hack to eliminate busy files, copy them to /tmp and use them
|
|
|
|
|
#from there...
|
|
|
|
|
cp -p /bin/cat /usr/bin/gunzip /usr/bin/tar /tmp
|
1993-08-26 17:59:21 +02:00
|
|
|
|
/tmp/cat "$@"* | /tmp/gunzip | (cd / ; /tmp/tar --extract --file - --preserve-permissions ${tarverbose} )
|
1993-08-26 05:23:20 +02:00
|
|
|
|
rm -f /bin/cat /tmp/gunzip /tmp/tar
|
1993-08-11 14:51:37 +02:00
|
|
|
|
sync
|
|
|
|
|
}
|
|
|
|
|
configure()
|
|
|
|
|
{
|
|
|
|
|
echo "You will now be prompted for information about this"
|
|
|
|
|
echo "machine. If you hit return, the default answer (in"
|
|
|
|
|
echo "brackets) will be used."
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo -n "What is this machine's hostname? [unknown.host.domain] "
|
|
|
|
|
read hname
|
|
|
|
|
|
|
|
|
|
if [ "$hname" = "" ]; then
|
|
|
|
|
hname=unknown.host.domain
|
|
|
|
|
fi
|
|
|
|
|
echo $hname > /etc/myname
|
|
|
|
|
proto_domain=`echo $hname | sed -e 's/[^.]*\.//'`
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo "What domain is this machine in (this is NOT its YP"
|
|
|
|
|
echo -n "domain name)? [$proto_domain] "
|
|
|
|
|
read dname
|
|
|
|
|
|
|
|
|
|
if [ "$dname" = "" ]; then
|
|
|
|
|
dname=$proto_domain
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo -n "Does this machine have an ethernet interface? [y] "
|
|
|
|
|
read resp
|
|
|
|
|
case "$resp" in
|
|
|
|
|
n*)
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
intf=
|
|
|
|
|
while [ "$intf" = "" ]; do
|
|
|
|
|
echo -n "What is the primary interface name (i.e. we0, etc.)? "
|
|
|
|
|
read intf
|
|
|
|
|
done
|
|
|
|
|
echo -n "What is the hostname for this interface? [$hname] "
|
|
|
|
|
read ifname
|
|
|
|
|
if [ "$ifname" = "" ]; then
|
|
|
|
|
ifname=$hname
|
|
|
|
|
fi
|
|
|
|
|
ifaddr=
|
|
|
|
|
while [ "$ifaddr" = "" ]; do
|
|
|
|
|
echo -n "What is the IP address associated with this interface? "
|
|
|
|
|
read ifaddr
|
|
|
|
|
done
|
|
|
|
|
echo "$ifaddr $ifname `echo $ifname | sed -e s/\.$dname//`" \
|
|
|
|
|
>> /etc/hosts
|
|
|
|
|
|
|
|
|
|
echo -n "Does this interface have a special netmask? [n] "
|
|
|
|
|
read resp
|
|
|
|
|
case "$resp" in
|
|
|
|
|
y*)
|
|
|
|
|
echo -n "What is the netmask? [0xffffff00] "
|
|
|
|
|
read ifnetmask
|
|
|
|
|
if [ "$ifnetmask" = "" ]; then
|
|
|
|
|
ifnetmask=0xffffff00
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
ifnetmask=
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
echo -n "Does this interface need additional flags? [n] "
|
|
|
|
|
read resp
|
|
|
|
|
case "$resp" in
|
|
|
|
|
y*)
|
|
|
|
|
echo -n "What flags? [llc0] "
|
|
|
|
|
read ifflags
|
|
|
|
|
if [ "$ifflags" = "" ]; then
|
|
|
|
|
ifflags=llc0
|
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
ifflags=
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
echo "inet $ifname $ifnetmask $ifflags" > /etc/hostname.$intf
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo "WARNING: if you have any more ethernet interfaces, you"
|
|
|
|
|
echo "will have to configure them by hand. Read the comments"
|
|
|
|
|
echo "in /etc/netstart to learn how to do this"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
sync
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo "OK. You should be completely set up now."
|
|
|
|
|
echo "You should now reboot your machine by issuing the 'reboot' command"
|
|
|
|
|
echo "after removing anything that happens to be in your floppy drive."
|
|
|
|
|
}
|