sub UnMountVolume($)
{
my $mountPoint = $_[0];
print "Un-mounting $mountPoint\n";
# Checking if the mount point exists
if ( grep m{$mountPoint}, qx{/bin/mount} )
{
#Mount point exists, attempt to unmount it without force option
system("/bin/umount $mountPoint");
}
else
{
print "$mountPoint is not mounted, please check it out\n";
}
}
No comments:
Post a Comment