diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-10-15 16:10:00 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-10-15 16:10:00 +0000 |
commit | 83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c (patch) | |
tree | 4c26d86f98f9c21e47cc27df98ab8ef90e280455 /nfs_wizard/scripts/NFSConf.pm | |
parent | 7c9035918b08c4f2e6960a9664dbdd4e40e45c6a (diff) | |
download | drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar.gz drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar.bz2 drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.tar.xz drakwizard-83eca6fa0dac3c5dbf68aff23d87ff5fca2e5a5c.zip |
wiz update, nfs fixed
Diffstat (limited to 'nfs_wizard/scripts/NFSConf.pm')
-rw-r--r-- | nfs_wizard/scripts/NFSConf.pm | 11 |
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; } |