diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2004-02-04 15:45:01 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2004-02-04 15:45:01 +0000 |
commit | cf9f343cafead0e447f174f5bfab5b1ee8893839 (patch) | |
tree | bf74ebb1e0b6eb5d85e67fbf05ecd253f042ca96 /perl-install/network/netconnect.pm | |
parent | cbcbec48e838d6b5b44baf9a253b8a0f4c7cf93f (diff) | |
download | drakx-cf9f343cafead0e447f174f5bfab5b1ee8893839.tar drakx-cf9f343cafead0e447f174f5bfab5b1ee8893839.tar.gz drakx-cf9f343cafead0e447f174f5bfab5b1ee8893839.tar.bz2 drakx-cf9f343cafead0e447f174f5bfab5b1ee8893839.tar.xz drakx-cf9f343cafead0e447f174f5bfab5b1ee8893839.zip |
- add network::ethernet::get_eth_cards_names
- kill duplicated code
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r-- | perl-install/network/netconnect.pm | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 12b41a8f4..a409f875e 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -134,11 +134,7 @@ sub get_subwizard { detect($netc->{autodetect}, 'lan'); modules::interactive::load_category($in, 'network/main|gigabit|pcmcia|usb|wireless', !$::expert, 1); @all_cards = network::ethernet::get_eth_cards(); - foreach my $card (@all_cards) { - modules::remove_alias($card->[1]); - modules::add_alias($card->[0], $card->[1]); - } - %eth_intf = map { $_->[0] => join(': ', $_->[0], $_->[2]) } @all_cards; + %eth_intf = network::ethernet::get_eth_cards_names(@all_cards); if ($is_wireless) { require list_modules; my @wmodules = list_modules::category2modules('network/wireless'); |