aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command8
1 files changed, 8 insertions, 0 deletions
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} = [];
], "<file> <directory> [files]",
"Uncompress tarball",
\&untar, "Uncompress tarball" ],
+ [ "", "umount", 1, "<directory>]",
+ "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);
+}