#Ensure that we have an image or partition to mount
if [ ! -f "$IMGFILE" ] && [ ! -b "$IMGFILE" ] ; then
MSG1=`printf "ERROR!\n\nThe image specified ($IMGFILE) does not exist or is neither\na regular nor a block special file.\n\nFirst parameter must be an image file or partition"`
if [ ! -f "/usr/bin/gxmessage" ] ; then
#Ensure that we have an image or partition to mount
if [ ! -f "$IMGFILE" ] && [ ! -b "$IMGFILE" ] ; then
MSG1=`printf "ERROR!\n\nThe image specified ($IMGFILE) does not exist or is neither\na regular nor a block special file.\n\nFirst parameter must be an image file or partition"`