summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-07-21 16:50:09 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-07-21 16:50:09 +0000
commit9556a305af3e501c67090f2e5274de67fc1bc17a (patch)
tree9cbebbce14cddb69025b0049767cec5a507c4adc /perl-install/network/network.pm
parent308e29f3d74b047d2ed126c3b21a02f9dcefa903 (diff)
downloaddrakx-9556a305af3e501c67090f2e5274de67fc1bc17a.tar
drakx-9556a305af3e501c67090f2e5274de67fc1bc17a.tar.gz
drakx-9556a305af3e501c67090f2e5274de67fc1bc17a.tar.bz2
drakx-9556a305af3e501c67090f2e5274de67fc1bc17a.tar.xz
drakx-9556a305af3e501c67090f2e5274de67fc1bc17a.zip
dhcp host name cannot be set if one want to get it from dhcp server
Diffstat (limited to 'perl-install/network/network.pm')
-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 856f7b3f0..2b1f5c944 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -349,7 +349,7 @@ notation (for example, 1.2.3.4).");
{ label => N("IP address"), val => \$intf->{IPADDR}, disabled => sub { $auto_ip } },
{ label => N("Netmask"), val => \$intf->{NETMASK}, disabled => sub { $auto_ip } },
- { label => N("DHCP host name"), val => \$intf->{DHCP_HOSTNAME}, disabled => sub { ! $auto_ip }, advanced => 1 },
+ { label => N("DHCP host name"), val => \$intf->{DHCP_HOSTNAME}, disabled => sub { ! ($auto_ip && $needhostname) }, advanced => 1 },
{ text => N("Track network card id (useful for laptops)"), val => \$track_network_id, type => "bool", advanced => 1 },
{ text => N("Network Hotplugging"), val => \$hotplug, type => "bool", advanced => 1 },
{ text => N("Assign host name from DHCP address"), val => \$needhostname, type => "bool", disabled => sub { ! $auto_ip }, advanced => 1 },