#!/bin/sh 
#130102 sfs
    imgFile="$1"
 [ -z "$imgFile" ] && exit 1 
 MntPt=/mnt/$(realpath "${1}" | tr ' ' '_' | sed "s#^\.##g" | sed "s#/#+#g")
      mountfile $imgFile 
      Err=$?
if [ $Err -eq 0 ] ;then
     echo "$imgFile монтирован в $MntPt"
   ln -s $MntPt "`basename $1`-mnt" && echo "Создан сим.линк `pwd`/`basename $1`-mnt" &&  exit 0
else
   rm -rf $MntPt
   exit $Err
fi
