#!/bin/sh
if [ -z "$1" -o ! -b "$1" ] ; then
  echo "usage: vfatcreate.sh <block device> [label]"
  exit 1
fi

if [ "$2" ]
then LABEL="$2"
else LABEL=vfat
fi

mkdosfs -F 32 -m "This parition is not bootable" -n "$LABEL" -r 512 -v $1

