summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2002-09-09 18:19:41 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2002-09-09 18:19:41 +0000
commit448110cf137f2f7b2b909b2ddc13ce3758b78a7e (patch)
tree4ffcc8c0f979e44ad4317da99965f04f7d57d300 /perl-install/network
parent2ad772d7eba340d4aed1f4fd0c151c88ad9da9d4 (diff)
downloaddrakx-backup-do-not-use-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar
drakx-backup-do-not-use-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar.gz
drakx-backup-do-not-use-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar.bz2
drakx-backup-do-not-use-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar.xz
drakx-backup-do-not-use-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.zip
- show pcmcia ethernet cards in list
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/network.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index b3ae04b33..912c4dcc8 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -371,6 +371,17 @@ You may also enter the IP address of the gateway if you have one"),
{ label => _("Gateway device"), val => \$netc->{GATEWAYDEV}, list => \@devices },
),
],
+ complete => sub {
+ unless (is_ip($netc->{dnsServer})) {
+ $in->ask_warn('', _("DNS server address should be in format 1.2.3.4"));
+ return 1;
+ }
+ unless (is_ip($netc->{GATEWAY})) {
+ $in->ask_warn('', _("Gateway address should be in format 1.2.3.4"));
+ return 1;
+ }
+ 0;
+ }
);
}