git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mount cmd
[vsys.git]
/
factory
/
nfsmount
diff --git
a/factory/nfsmount
b/factory/nfsmount
index
3f0222d
..
42303dc
100755
(executable)
--- a/
factory/nfsmount
+++ b/
factory/nfsmount
@@
-33,3
+33,16
@@
if ($nfspath!~/^(((\.\.){1}\/)*|(\/){1})?(([a-zA-Z0-9]*)\/)*([a-zA-Z0-9]*)+$/) {
die("The remote path $nfspath does not seem to be right.");
}
die("The remote path $nfspath does not seem to be right.");
}
+my $mntcmd;
+
+$mntcmd="/bin/mount $remotepath $localpath";
+system($mntcmd);
+
+if ($?) {
+ print "Mount failed: $?";
+}
+else {
+ open FIL, ">$already_mounted_testfile";
+ print FIL "$remotepath $localpath";
+ close FIL;
+}