UNIXPC ua floppy disk tools fix

JIM PICKERING jrp at rducky
Thu Sep 21 16:33:50 AEST 1989


If you have more than one disk (thanks again Gil and Lenny!) on your
UNIXPC and use the user agent, you will run into trouble trying to use the
floppy disk tools (copy, format, etc.).  The offending files are in
/usr/bin and are Fcopy.sh, Fformat.sh, Fformat10.sh, and FlpyChk.sh.

They all use a rather crude method to determine if the the floppy is
mounted (see below), which will not work if you have more than 1 hard
disk file system mounted.  I hacked together a quick fix.  Check each of
the above files for the commented lines and replace with the uncommented
lines.


##  CHECK THAT THE FLOPPY IS NOT MOUNTED.

#DEVNUM=`mount | wc -l | cut -c7-7`
#if [ "$DEVNUM" != "1" ]
#then
#	clear
#	message -cu $ERROR1
#	exit
#fi
DEVNUM=`mount|grep /dev/fp021` 
if [ "$DEVNUM" ]
then
	clear
	message -cu $ERROR1
	exit
fi


jim

-- 
Jim Pickering c/o Technical Solutions	|| (north) ..csustan!polyslo!rducky!jrp 
P.O. Box 1045				|| (south) ..sdsu!polyslo!rducky!jrp 
Arroyo Grande, CA 93420			|| (south) ..csun!polyslo!rducky!jrp
(805) 473-1037				|| (east)  ..csufres!polyslo!rducky!jrp



More information about the Unix-pc.general mailing list