summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-12 12:29:56 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-12 12:29:56 +0000
commit7639d230b844648b4d4b6d2ed00830c42a46b1e4 (patch)
tree17f6859963128693494cdd2b74dedb46140e19e6 /perl-install/network
parentd47df30f43b630decb5b522c43e0a0683a5aee82 (diff)
downloaddrakx-7639d230b844648b4d4b6d2ed00830c42a46b1e4.tar
drakx-7639d230b844648b4d4b6d2ed00830c42a46b1e4.tar.gz
drakx-7639d230b844648b4d4b6d2ed00830c42a46b1e4.tar.bz2
drakx-7639d230b844648b4d4b6d2ed00830c42a46b1e4.tar.xz
drakx-7639d230b844648b4d4b6d2ed00830c42a46b1e4.zip
reuse is_dynamic_ip() to not bother asking about zeroconf specific stuff when
there's not any dynamic interfaces
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/network.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index d85284b50..f8f82604e 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -421,7 +421,7 @@ You may also enter the IP address of the gateway if you have one.") . N("
Enter a Zeroconf host name without any dot if you don't
want to use the default host name."),
[ { label => N("Host name"), val => \$netc->{HOSTNAME} },
- { label => N("Zeroconf Host name"), val => \$netc->{ZEROCONF_HOSTNAME} },
+ { label => N("Zeroconf Host name"), val => \$netc->{ZEROCONF_HOSTNAME}, disabled => sub { is_dynamic_ip($intf) } },
{ label => N("DNS server"), val => \$netc->{dnsServer} },
{ label => N("Gateway (e.g. %s)", $gateway_ex), val => \$netc->{GATEWAY} },
if_(@devices > 1,