#ident	"@(#)proto:i386/at386/tape/INSTALL	1.2.2.2"

echo "
	Portions Copyright (C) 1990 Intel Corporation.
	Portions Copyright (C) 1990 Interactive Systems Corporation.
	All Rights Reserved
"
PATH=/:/sbin:/usr/bin:/etc; export PATH

stty erase '^h'
#stty quit '^c'
stty echoe

machid -s > /dev/null 2>&1
if [ "$?" != "0" ]
then echo "Incorrect UNIX System \"Base System Package\" Floppy Disk 1.\n"
echo "This disk is not appropriate for\nmachines exclusively equipped with SCSI peripherals.\n"
echo "Please refer to the installation\nguide for more information.\n"
uadmin 2 0
fi
cd /

while [ 1 ]
do
echo "Please insert the UNIX System \"Base System Package\"\nFloppy Disk 2 and then strike ENTER.\c"
read x
/etc/fs/s5/mount -r /dev/dsk/f0 /install > /dev/null 2>&1
if [ -f /install/LABEL.4.0.tp ]
then
	break
fi
umount /install > /dev/null 2>&1
echo "\nError reading UNIX System \"Base System Package\" Floppy Disk 2."
echo "Please check that it is the correct floppy disk\nand that it is correctly inserted.\n\
Please strike ENTER when ready or DEL to cancel the installation.\n"
done

/install/usr/bin/ln -s /install/usr/bin/ln /usr/bin/ln > /dev/null 2>&1
ln -s /install/usr/lib/libc.so.1 /usr/lib/libc.so.1 > /dev/null 2>&1
/install/usr/bin/mkdir /etc/fs/bfs /usr/sbin /etc/fs/ufs > /dev/null 2>&1
cd /install
./usr/bin/find etc/fs -type f -print | while read i
do
ln -s /install/$i /$i
done > /dev/null 2>&1
/install/sbin/sync
cd /
/install/INSTALLA
