summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2003-03-05 22:42:09 +0000
committerFrederic Lepied <flepied@mandriva.com>2003-03-05 22:42:09 +0000
commitda6fe8205129c500947e085bd94780505234bcbf (patch)
treea58823d21b3378817aec7b27889131132d3ce094 /perl-install/network
parent29e94f03ce0828add55b9f52c685d85e6f3e7d58 (diff)
downloaddrakx-da6fe8205129c500947e085bd94780505234bcbf.tar
drakx-da6fe8205129c500947e085bd94780505234bcbf.tar.gz
drakx-da6fe8205129c500947e085bd94780505234bcbf.tar.bz2
drakx-da6fe8205129c500947e085bd94780505234bcbf.tar.xz
drakx-da6fe8205129c500947e085bd94780505234bcbf.zip
fix to avoid creating an ifcfg-1 config file.
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/ethernet.pm15
1 files changed, 8 insertions, 7 deletions
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 {