From 448110cf137f2f7b2b909b2ddc13ce3758b78a7e Mon Sep 17 00:00:00 2001 From: Damien Chaumette Date: Mon, 9 Sep 2002 18:19:41 +0000 Subject: - show pcmcia ethernet cards in list --- perl-install/network/network.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; + } ); } -- cgit v1.2.1