From da6fe8205129c500947e085bd94780505234bcbf Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Wed, 5 Mar 2003 22:42:09 +0000 Subject: fix to avoid creating an ifcfg-1 config file. --- perl-install/network/ethernet.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'perl-install/network') diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm index a213ba65d..9528a9ed9 100644 --- a/perl-install/network/ethernet.pm +++ b/perl-install/network/ethernet.pm @@ -143,13 +143,14 @@ sub conf_network_card_backend { if_($interface_state =~ /inet addr|Bcast|Mask|Interrupt|Base address/ && $a, [$interface, $saved_driver]); } @all_cards, @unconfigured_interfaces; } - my ($device) = $interface =~ /eth[0-9]+/ or die("the interface is not an ethx"); - $netc->{NET_DEVICE} = $device; #- one consider that there is only ONE Internet connection device.. - - @{$intf->{$device}}{qw(DEVICE BOOTPROTO NETMASK NETWORK ONBOOT)} = ($device, $type, '255.255.255.0', $netadr, 'yes'); - - $intf->{$device}{IPADDR} = $ipadr if $ipadr; - $device; + $interface =~ /eth[0-9]+/ or die("the interface is not an ethx"); + + $netc->{NET_DEVICE} = $interface; #- one consider that there is only ONE Internet connection device.. + + @{$intf->{$interface}}{qw(DEVICE BOOTPROTO NETMASK NETWORK ONBOOT)} = ($interface, $type, '255.255.255.0', $netadr, 'yes'); + + $intf->{$interface}{IPADDR} = $ipadr if $ipadr; + $interface; } sub go_ethernet { -- cgit v1.2.1