summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-16 16:54:01 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-16 16:54:01 +0000
commit1c90abdf1eb4a48ec920a3d0538849ac9fd21c6f (patch)
treea85076ed0f63d0be299b0365be54a1f7926df94b /perl-install
parentba8e8f1212675679d40009210454f62d26db2182 (diff)
downloaddrakx-backup-do-not-use-1c90abdf1eb4a48ec920a3d0538849ac9fd21c6f.tar
drakx-backup-do-not-use-1c90abdf1eb4a48ec920a3d0538849ac9fd21c6f.tar.gz
drakx-backup-do-not-use-1c90abdf1eb4a48ec920a3d0538849ac9fd21c6f.tar.bz2
drakx-backup-do-not-use-1c90abdf1eb4a48ec920a3d0538849ac9fd21c6f.tar.xz
drakx-backup-do-not-use-1c90abdf1eb4a48ec920a3d0538849ac9fd21c6f.zip
fix automatically found "...2" dns when network is done
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 0fd988180..d95b099e2 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -982,9 +982,11 @@ I cannot set up this connection type.")), return;
static_hostname =>
{
pre => sub {
- $netc->{dnsServer} ||= dns($ethntf->{IPADDR});
- $gateway_ex = gateway($ethntf->{IPADDR});
- #- $netc->{GATEWAY} ||= gateway($ethntf->{IPADDR});
+ if ($ethntf->{IPADDR}) {
+ $netc->{dnsServer} ||= dns($ethntf->{IPADDR});
+ $gateway_ex = gateway($ethntf->{IPADDR});
+ # $netc->{GATEWAY} ||= gateway($ethntf->{IPADDR});
+ }
},
name => N("Please enter your host name.
Your host name should be a fully-qualified host name,