#! /bin/sh

if [ $# -lt 1 ]; then
	echo "Usage: mkcart <cart-name> ... "
	exit 1
fi

if [ ! -r /dev/zero ]; then
	echo "mkcart: can't open /dev/zero"
	exit 1
fi

echo "Mkcart v1.0 - .MDR cartridge creation program"

for i in $*; do
	echo "Creating unformatted microdrive cartridge file $i"
	dd if=/dev/zero of=$i bs=137923 count=1 2> /dev/null
done


