diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-23 08:20:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-23 08:20:34 +0000 |
commit | 97c37abf6624ca1a670a883b1257120116ad72ea (patch) | |
tree | fb0369b8cebc3bbb1d035a7e5a42d81020f88af0 /perl-install/standalone/drakconnect | |
parent | 220fd0b8f1252429fa00dad691f9d47f773a94ae (diff) | |
download | drakx-97c37abf6624ca1a670a883b1257120116ad72ea.tar drakx-97c37abf6624ca1a670a883b1257120116ad72ea.tar.gz drakx-97c37abf6624ca1a670a883b1257120116ad72ea.tar.bz2 drakx-97c37abf6624ca1a670a883b1257120116ad72ea.tar.xz drakx-97c37abf6624ca1a670a883b1257120116ad72ea.zip |
do not complain about gateway format when it's not set
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-x | perl-install/standalone/drakconnect | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index b43156902..b6053129a 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -568,7 +568,9 @@ sub save_notebook { if ($intf->{BOOTPROTO} eq 'static') { check_field($intf, 'IPADDR', 'NETMASK') or $in->ask_warn(N("Error"), N("IP address should be in format 1.2.3.4")) and return 0; } - check_field($netc, 'GATEWAY') or $in->ask_warn(N("Error"), N("Gateway address should be in format 1.2.3.4")) and return 0; + if ($netc->{GATEWAY}) { + check_field($netc, 'GATEWAY') or $in->ask_warn(N("Error"), N("Gateway address should be in format 1.2.3.4")) and return 0; + } 1; } |