
# Alpha Micro - Make boot tape for system V
case $1 in
	rmt* ) ;;
	str* ) ;;
	* )	echo "\n\nAlpha Micro Make Boot Tape Command\n"
		echo "Usage:	make_boot_tape dev"
		echo "The following devices are currently supported:"
		echo "	rmtD	- Magnetic tape"
		echo "	strD	- Streamer tape"
		echo "	   D = Device number\n\n"
		exit
		;;
esac
cd /install
echo < /dev/$1
dd if=sa_bootx of=tmp$$ ibs=32 skip=1 obs=512
echo "Writing boot program...."
dd if=tmp$$ of=/dev/n$1 bs=512 conv=sync
rm -f tmp$$
echo "Writing AMIX kernel...."
dd if=/unix of=/dev/n$1 bs=512 conv=sync
echo "Writing badblock program...."
dd if=sa_badblk of=/dev/n$1 bs=512 conv=sync
echo "Writing restore program...."
dd if=sa_restore of=/dev/n$1 bs=512 conv=sync
echo "Writing root file system...."
dd if=fs of=/dev/n$1 bs=512 conv=sync
# now make sure we can read the tape
echo < /dev/$1
echo "Reading boot program...."
dd if=/dev/n$1 of=/dev/null bs=512
echo "Reading AMIX kernel...."
dd if=/dev/n$1 of=/dev/null bs=512
echo "Reading badblock program...."
dd if=/dev/n$1 of=/dev/null bs=512
echo "Reading restore program...."
dd if=/dev/n$1 of=/dev/null bs=512
echo "Reading root file system...."
dd if=/dev/n$1 of=/dev/null bs=512
echo < /dev/$1
