#!/bin/sh

# diskcopy

echo "diskcopy - physical copy of floppy disks"

echo -n "Insert source disk and hit ENTER "
read eingabe

dd if=/dev/fd0 of=/tmp/diskcopy_tmp$$

aktiv=1

while [ $aktiv -eq 1 ]; do

   echo -n "Insert destination disk and hit ENTER "
   read eingabe

   dd if=/tmp/diskcopy_tmp$$ of=/dev/fd0

   echo -n "Ready. Another duplicate? [y/n] "
   read eingabe

   if [ $eingabe != "y" ]; then
      aktiv=0
   fi

done

rm /tmp/diskcopy_tmp$$

