echo 
echo
echo "          Please insert diskette labelled 'Boot 2 of 2' into the drive"
echo -n "                                    hit <cr> when ready to proceed:"
read ans
:
PATH=.:/bin:/etc:/boot2/bin:/boot2/etc
echo "Mounting second boot floppy..."
mount /dev/dvf0 /boot2 -r
echo "Formatting winchester drive..."
instl
mount /dev/w0a /wini
mkdir /wini/bin
echo "copying files from floppy to wini..."
echo "/bin/sh...";		cp /bin/sh /wini/bin
echo "/bin/echo...";		cp /bin/echo /wini/bin
echo "/bin/sync...";		cp /bin/sync /wini/bin
echo "/etc/init...";		cp /etc/init /wini/etc
echo "/etc/inir...";		cp /etc/init /wini/etc/inir
echo "/etc/mount...";	cp /etc/mount /wini/etc
echo "/etc/haltsys...";	cp /etc/haltsys /wini/etc
echo "/etc/instlsys...";	cp /boot2/etc/instlsys /wini/etc
:
echo "/bin/*...";		cp /boot2/bin/* /wini/bin
rm -f /wini/bin/cp;		ln /wini/bin/ln /wini/bin/cp
echo "/boot...";		cp /boot2/boot /wini
:
echo "and /.profile."
cat >/wini/.profile <<PROF
PS1="newsys> ";			export PS1
echo
echo "  XENIX 286 Release 3.0 Distribution System"
echo " "
echo "           to install xenix, type '/etc/instlsys' when you get the"
echo " 'newsys>' prompt"
PROF
:
echo "Making device nodes on winchester..."
cp /dev/dev.boot /wini/dev
cd /wini/dev
dev.boot
:
cd /
umount /dev/w0a
echo "  There is now enough of xenix on the winchester to boot the system."
echo "  Take the diskette labelled 'Boot 2 of 2' from the diskette drive."
echo "  When you see the message 'Normal System Shutdown',"
echo "  hit the reset switch.  When a '*' appears, hit a SHIFT-U.  After"
echo "  the system has run throught the System Confidence Test, it will"
echo "  boot automatically."
echo
sync
sync
/etc/haltsys
