#! /bin/sh
TEMPDIR=/var/tmp
BOOT_MP=/mnt/bootimage

if [ -z $1 ]; then
  echo "please give image file to pack"
  exit 0;
fi
image=$1
cd $TEMPDIR
umount $BOOT_MP
echo "please insert a floppy disk"
read -p "Press enter when ready..."
dd if=$image of=/dev/fd0
echo "Bootimage written to floppy disk!"
rmdir $BOOT_MP
