:
# $Id: dosboot.sh,v 1.2 2001/11/07 18:06:57 rlawrence Exp $ 
# SCCSID(@(#)dosboot.sh	1.13) Modified 01:53:46 3/9/00
#
# UNIX shell script to boot a DOS from the floppy in drive "A".

# Get the STATICMERGE, VARMERGE, and DOSWINBINDIR settings.
. /etc/mrgssv.sh
	
echo "$*" | grep "+l" >/dev/null 2>&1
if [ $? -eq 0 ]
then
	# The script "set_nls.sh" sets MFILE
	. $STATICMERGE/set_nls.sh
	# DM is the domain for messages for this script.
	DM="LCC.MERGE.UNIX.DOSBOOT"
	lmfmsg $MFILE $DM.ERR1 $0 >/dev/null 2>&1
	if [ $? -eq 0 ]
	then
		lmfmsg $MFILE $DM.ERR1 $0
	else
		echo "ERROR: Cannot use the \"+l\" option with $0."
	fi
	exit 1
fi
if [ ! -x $DOSWINBINDIR/dos ]
then
	echo "Missing $DOSWINBINDIR/dos."
	exit 1
fi
# If DOS is not installed, use special options.
if [ ! -f $VARMERGE/dosroot/dos/command.com \
  -o ! -f $VARMERGE/image/std/vga/vga.img ]
then
	exec $DOSWINBINDIR/dos +amda +f -e -p -l $*
else
	exec $DOSWINBINDIR/dos -l $*
fi
