#!/bin/sh
rm -f /tmp/SeTDS /tmp/SeTmount
cat << EOF > /tmp/tmpmsg

    Select device file that 
    corresponds to your drive.

EOF

dialog 	--title "SELECT FLOPPY DRIVE" \
	--menu "`cat /tmp/tmpmsg`" 12 50 2 \
"/dev/fd0" 	"Generic floppy in drive A:" \
"/dev/fd1" 	"Generic floppy in drive B: " \
#"/dev/fd0H1440" "1.44M drive a:" \
#"/dev/fd1H1440" "1.44M drive b:" \
#"/dev/fd0h1200" "1.2M drive a:" \
#"/dev/fd1h1200" "1.2M drive b:" \
2> /tmp/whichdrv

if [ $? = 1 -o $? = 255 ]; then
 rm -f /tmp/whichdrv /tmp/tmpmsg
 exit
fi

rm -f /tmp/tmpmsg

mv /tmp/whichdrv /tmp/SeTsource
echo "" > /tmp/SeTDS
echo "" > /tmp/SeTmount
