summaryrefslogtreecommitdiffstats
path: root/nfs_wizard/scripts/NFSConf.pm
diff options
context:
space:
mode:
Diffstat (limited to 'nfs_wizard/scripts/NFSConf.pm')
-rw-r--r--nfs_wizard/scripts/NFSConf.pm11
1 files changed, 4 insertions, 7 deletions
diff --git a/nfs_wizard/scripts/NFSConf.pm b/nfs_wizard/scripts/NFSConf.pm
index 673f571a..10387805 100644
--- a/nfs_wizard/scripts/NFSConf.pm
+++ b/nfs_wizard/scripts/NFSConf.pm
@@ -17,9 +17,6 @@ sub network_mask {
}
sub chooser {
- if ($ENV{wiz_nfs_level} == 1) {
- do_it();
- }
$ENV{wiz_nfs_level};
}
@@ -35,15 +32,15 @@ sub do_it {
else {
$line = "$ENV{wiz_nfs_dir} *(rw,no_root_squash)\n";
}
- print "$line\n";
my $t;
foreach (cat_($file)) {
- if (/.*(?!\#).*$ENV{wiz_nfs_dir}\s.*/) {
+ if (/^(?!\#).*$ENV{wiz_nfs_dir}\s.*/) {
$t = $_;
last;
}
}
- if ($t) {substInFile { s|.*(?!\#).*$ENV{wiz_nfs_dir}\s.*|\#$&|} $file }
+ substInFile { s|^(?!\#).*$ENV{wiz_nfs_dir}\s.*|\#$&|} $file;
append_to_file($file, $line);
- system("/usr/sbin/exportfs -a")
+ system("/usr/sbin/exportfs -a");
+ 10;
}