diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2002-09-09 18:19:41 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2002-09-09 18:19:41 +0000 |
commit | 448110cf137f2f7b2b909b2ddc13ce3758b78a7e (patch) | |
tree | 4ffcc8c0f979e44ad4317da99965f04f7d57d300 /perl-install | |
parent | 2ad772d7eba340d4aed1f4fd0c151c88ad9da9d4 (diff) | |
download | drakx-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar drakx-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar.gz drakx-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar.bz2 drakx-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.tar.xz drakx-448110cf137f2f7b2b909b2ddc13ce3758b78a7e.zip |
- show pcmcia ethernet cards in list
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/network/network.pm | 11 |
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; + } ); } |