summaryrefslogtreecommitdiff
path: root/Tools/schnitt/vmount
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/schnitt/vmount')
-rwxr-xr-xTools/schnitt/vmount18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tools/schnitt/vmount b/Tools/schnitt/vmount
new file mode 100755
index 0000000..6b79064
--- /dev/null
+++ b/Tools/schnitt/vmount
@@ -0,0 +1,18 @@
+#!/bin/sh
+count=1
+cond=0
+
+if [ -f "$1" ]; then
+ mount "$1" /mnt/1 -o loop
+ $cond = 1
+else
+ while [ "$cond" != "1" ]
+ do
+ if [ -f "$1$count" ]; then
+ mount "$1$count" /mnt/$count -o loop
+ else
+ cond=1
+ fi
+ let count=count+1
+ done
+fi