summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/fix_myth_mount.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-30 19:03:20 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-30 19:03:20 (GMT)
commit68def16b69900b781eab3f36f27d94eaf42a360b (patch)
tree55ae3b3f8a8611d73e1b2e4eb2bb12fe9c6d9fdd /abs/core/LinHES-system/fix_myth_mount.sh
parentf01f4a6a837ccbdc55107bb0738846b5a56f1462 (diff)
downloadlinhes_pkgbuild-68def16b69900b781eab3f36f27d94eaf42a360b.zip
linhes_pkgbuild-68def16b69900b781eab3f36f27d94eaf42a360b.tar.gz
linhes_pkgbuild-68def16b69900b781eab3f36f27d94eaf42a360b.tar.bz2
linhes-system: add new utils for backup/update/and restore
Diffstat (limited to 'abs/core/LinHES-system/fix_myth_mount.sh')
-rw-r--r--abs/core/LinHES-system/fix_myth_mount.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/fix_myth_mount.sh b/abs/core/LinHES-system/fix_myth_mount.sh
new file mode 100644
index 0000000..2ed9783
--- /dev/null
+++ b/abs/core/LinHES-system/fix_myth_mount.sh
@@ -0,0 +1,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 \ No newline at end of file