diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-14 15:00:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-14 15:00:07 +0000 |
commit | 0e484c146002a09b2a32722cc46699719ab6a3a5 (patch) | |
tree | 396c1ef3e9819785a39b7a9acbea4cda0e34445e /nfs_wizard | |
parent | ee2998026e68094c077eccb7a82280383d80facb (diff) | |
download | drakwizard-0e484c146002a09b2a32722cc46699719ab6a3a5.tar drakwizard-0e484c146002a09b2a32722cc46699719ab6a3a5.tar.gz drakwizard-0e484c146002a09b2a32722cc46699719ab6a3a5.tar.bz2 drakwizard-0e484c146002a09b2a32722cc46699719ab6a3a5.tar.xz drakwizard-0e484c146002a09b2a32722cc46699719ab6a3a5.zip |
perl_checker fixes
Diffstat (limited to 'nfs_wizard')
-rwxr-xr-x | nfs_wizard/NFS.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nfs_wizard/NFS.pm b/nfs_wizard/NFS.pm index 6b47941e..a27f32fa 100755 --- a/nfs_wizard/NFS.pm +++ b/nfs_wizard/NFS.pm @@ -119,8 +119,8 @@ sub check { sub network_mask { my $wiz_ip_server = $wiz->{net}->itf_get("IPADDR"); my $mask = $wiz->{net}->itf_get("NETMASK"); - $mask = $mask ? $mask : "255.255.255.0"; - $wiz_ip_server = $wiz_ip_server ? $wiz_ip_server : "192.168.1.0"; + $mask = $mask || "255.255.255.0"; + $wiz_ip_server = $wiz_ip_server || "192.168.1.0"; "$1.$2.$3.0/$mask" if $wiz_ip_server =~ /(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/; } @@ -143,12 +143,12 @@ sub do_it { } my $t; foreach (cat_($file)) { - if (/^(?!\#).*$o->{var}{wiz_nfs_dir}\s.*/) { + if (/^(?!#).*$o->{var}{wiz_nfs_dir}\s/) { $t = $_; last; } } - substInFile { s|^(?!\#).*$o->{var}{wiz_nfs_dir}\s.*|\#$&|} $file; + substInFile { s|^(?!#).*$o->{var}{wiz_nfs_dir}\s.*|#$&| } $file; append_to_file($file, $line); system("/usr/sbin/exportfs -a"); services::start('nfs') if services::is_service_running('nfs') |