
# putboot - this shell script puts the boot program on the selected
#	device. If a disk is selected the program is written on track
#	1. If a tape device is selected it is written out as a file.
#
cd /install
echo "\nAlpha Micro Putboot Program\n"
case $1 in
	1)
	echo "Writing boot program to disk...."
	dd if=sa_bootx of=/dev/am0h ibs=32 skip=1 obs=512 seek=36
	;;
	2)
	echo "Not supported yet."
	;;
	3)
	echo "Writing boot program to mag tape...."
	dd if=sa_bootx of=tmp$$ ibs=32 skip=1 obs=512
	dd if=tmp$$ of=/dev/rmt0 bs=512 conv=sync
	rm -f tmp$$
	;;
	4)
	echo "Writing boot program to streamer...."
	dd if=sa_bootx of=tmp$$ ibs=32 skip=1 obs=512
	dd if=tmp$$ of=/dev/str0 bs=512 conv=sync
	rm -f tmp$$
	;;
	*)
	echo " Usage: putboot number"
	echo "	1 - 70MB Fujitsu disk drive\n	2 - 400MB fujitsu disk drive"
	echo "	3 - Cipher mag tape unit\n	4 - Archive streamer tape unit"
	;;
esac
