#!/bin/sh
function checkmount {
  mounted=1
    for i in `cat /proc/mounts | cut -d' ' -f2`; do
       if [ "x$1" = "x$i" ]; then
          mounted=0
          break
       fi

    done
  return $mounted
}

checkmount $1
rc=$?

if [ $rc == 0 ]
then
   echo "fs is mounted"
else
   echo "fs is not mounted"
fi