From 9556a305af3e501c67090f2e5274de67fc1bc17a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 21 Jul 2003 16:50:09 +0000 Subject: dhcp host name cannot be set if one want to get it from dhcp server --- perl-install/network/network.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') 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 }, -- cgit v1.2.1