From 8ca26e20b6c9a46e3afc207a76d444aa7ae21fa7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sun, 3 Oct 2004 17:46:05 +0000 Subject: remove TYPE field in ifcfg files if connection type isn't ADSL --- perl-install/network/netconnect.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/network/netconnect.pm') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index f0cd7e7ea..afc205a92 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -954,6 +954,7 @@ Do you really want to reconfigure this device?"), $track_network_id = $::isStandalone && $ethntf->{HWADDR} || detect_devices::isLaptop(); delete $ethntf->{NETWORK}; delete $ethntf->{BROADCAST}; + delete $ethntf->{TYPE} unless $netcnx->{type} eq 'adsl' && member($adsl_type, qw(manual dhcp)); @fields = qw(IPADDR NETMASK); $netc->{dhcp_client} ||= (find { -x "$::prefix/sbin/$_" } qw(dhclient dhcpcd pump dhcpxd)) || "dhcp-client"; $netc->{dhcp_client} = "dhcp-client" if $netc->{dhcp_client} eq "dhclient"; -- cgit v1.2.1