summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/fix_myth_mount.sh
blob: 2ed97831a6cf0929af662c17a741d998de2d80f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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