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, 4 insertions, 4 deletions
diff --git a/iurt_root_command b/iurt_root_command
index df9b5e5..971b690 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -164,11 +164,11 @@ $run{todo} = [];
[ "", "netns_create", 1, "<directory>",
"create a network namespace",
- \&netfs_create, "Create network namespace for given chroot" ],
+ \&netns_create, "Create network namespace for given chroot" ],
[ "", "netns_delete", 1, "<directory>",
"delete a network namespace",
- \&netfs_delete, "Delete network namespace for given chroot, killing all processes" ],
+ \&netns_delete, "Delete network namespace for given chroot, killing all processes" ],
[ "", "useradd", 3, "<directory> <username> [uid]",
"Add user in given chroot",
@@ -413,7 +413,7 @@ sub btrfs_snapshot {
return !system("btrfs", "subvolume", "snapshot", $source, $dest);
}
-sub netfs_create {
+sub netns_create {
my ($_run, $dest) = @_;
check_path_authorized($dest) or return;
my $nsname = basename($dest);
@@ -425,7 +425,7 @@ sub netfs_create {
return 1;
}
-sub netfs_delete {
+sub netns_delete {
my ($_run, $dest) = @_;
check_path_authorized($dest) or return;
my $nsname = basename($dest);