From 1614ac3ea4d9c58b7ba2bf4fc1f98d7cb128325e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 1 Nov 2010 22:47:07 +0000 Subject: add umount (to be protected) --- iurt_root_command | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'iurt_root_command') diff --git a/iurt_root_command b/iurt_root_command index 6c79126..de21741 100755 --- a/iurt_root_command +++ b/iurt_root_command @@ -134,6 +134,9 @@ $run{todo} = []; ], " [files]", "Uncompress tarball", \&untar, "Uncompress tarball" ], + [ "", "umount", 1, "]", + "umount the given directory", + \&umount, "Unmounting" ], ); open(my $LOG, ">&STDERR"); @@ -344,3 +347,8 @@ sub untar { mkdir_p($dir); return !system('tar', 'xf', $file, '-C', $dir, @o_files); } + +sub umount { + my ($_run, $dir) = @_; + return !system("umount", $dir); +} -- cgit v1.2.1