From 3260864ea5f7e5b3e34f5f8bae0aeacd0d0a5559 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Thu, 19 Feb 2009 20:05:45 +0000 Subject: [PATCH] Mount cmd --- factory/nfsmount | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/factory/nfsmount b/factory/nfsmount index 3f0222d..42303dc 100755 --- 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."); } +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; +} -- 2.43.0