summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakconnect
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-23 08:20:34 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-23 08:20:34 +0000
commit97c37abf6624ca1a670a883b1257120116ad72ea (patch)
treefb0369b8cebc3bbb1d035a7e5a42d81020f88af0 /perl-install/standalone/drakconnect
parent220fd0b8f1252429fa00dad691f9d47f773a94ae (diff)
downloaddrakx-backup-do-not-use-97c37abf6624ca1a670a883b1257120116ad72ea.tar
drakx-backup-do-not-use-97c37abf6624ca1a670a883b1257120116ad72ea.tar.gz
drakx-backup-do-not-use-97c37abf6624ca1a670a883b1257120116ad72ea.tar.bz2
drakx-backup-do-not-use-97c37abf6624ca1a670a883b1257120116ad72ea.tar.xz
drakx-backup-do-not-use-97c37abf6624ca1a670a883b1257120116ad72ea.zip
do not complain about gateway format when it's not set
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-xperl-install/standalone/drakconnect4
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;
}