# Use this script to run Minicom if you are using uucp V3.2.23S or newer
# It will create the propper Lockfiles for you
# Major-Device-Number of used port
MA=6
# Minor-Device-Number of used port
MI=0
DEV=$MA.$MI
LOCK=/usr/spool/uucp/LCK..$DEV
if test -f $LOCK
then
	echo "Lockfile on device $DEV exists, sorry"
	exit
fi
echo -n 1 > $LOCK
/usr/local/bin/minicom $1 $2 $3
rm $LOCK
 
