#ident	"@(#)proto:i386/at386/scsi/INSTALL	1.2.1.1"

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 -es > /dev/null 2>&1
if [ "$?" != "1" ]
then echo "Incorrect UNIX System \"Base System Package\" Floppy Disk 1.\n"
echo "This disk is appropriate only 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.sc ]
then
	break
fi
umount /install > /dev/null 2>&1
echo "\nError 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
