#################################################################
#								#
#	File:	mkbootable					#
#								#
#	File creation date:  3/9/87 by AMK			#
#	File revision date:  none				#
#								#
#	This bourne shell script controls the execution		#
#	of the mkwinboot program.  				#
#								#
#	Written by:  Mike Kinsley				#
#								#
#	Modification History					#
#	--------------------					#
#	1.0	3/9/87	   by AMK.  Initial file creation	#
#								#
#################################################################

again=y

while [ "$again" = "y" ]
do
  echo
  echo "Attempting to make winchester #0 bootable."
  if mkwinboot
  then
    again=n
    echo
    echo "Winchester #0 is bootable."
    echo
    echo "Shutting down CUBIX."
    echo
    echo "Remove the floppy diskette and press RESET to boot CUBIX"
    echo "from your winchester when prompted to do so."
    echo
    uadmin 2 0
  else
    echo
    echo "Winchester #0 is NOT bootable".
    echo
    echo "If you want to try again type y and press return,"
    echo "else type n and press return."
    read again
    if [ "$again" != "y" ]
    then
      echo
      echo "Shutting down CUBIX."
      echo
      uadmin 2 0
    fi
  fi
done

