
echo "Installing config files isadevcfg.info and nvramcfg.info into /local"
cp isadevcfg.info    /local
cp nvramcfg.info  /local

echo "Installing mhdboot0"
cp mhdboot0           /generic/install/generic.i386
cp mhdboot0 /local

echo "Installing mhdboot"
cp mhdboot            /generic/install/generic.i386
cp mhdboot /local
cp mhdboot /local/boot

echo "Installing mhdload"
cp mhdload   /generic/install/generic.i386
cp mhdload /local

echo "Updating disk superblock"
./ipl*              

echo "Updating kernel"
cp scsi_scsi.o /usr/sys/386
cp machdep.o /usr/sys/386
cp fd.o /usr/sys/386

cd /usr/sys/386
echo "Archiving new .o files into kernel libs"
ar rv 386lib.a scsi_scsi.o machdep.o fd.o

echo "Installing new kernel"
/usr/sys/newkernel -install

exit 0
