summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-09-14 08:04:00 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-09-14 08:04:00 +0000
commit75e5fed165948b5eecab56b0f4c7c630ffd924d8 (patch)
tree0a3e3be6cfd073d60433267d47ba79cc53a8ad65 /perl-install/network/ethernet.pm
parent02799a83b15dd3e8288af81c1cd8595202c73268 (diff)
downloaddrakx-75e5fed165948b5eecab56b0f4c7c630ffd924d8.tar
drakx-75e5fed165948b5eecab56b0f4c7c630ffd924d8.tar.gz
drakx-75e5fed165948b5eecab56b0f4c7c630ffd924d8.tar.bz2
drakx-75e5fed165948b5eecab56b0f4c7c630ffd924d8.tar.xz
drakx-75e5fed165948b5eecab56b0f4c7c630ffd924d8.zip
(get_eth_cards_names) set a sensible name for firewire network
adapters in order to make GUIes look more user friendly
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index 79003d8b3..fd1081849 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -80,7 +80,12 @@ sub get_eth_cards {
sub get_eth_cards_names {
my (@all_cards) = @_;
- { map { $_->[0] => join(': ', $_->[0], $_->[2]) } @all_cards };
+ {
+ map {
+ $_->[2] ||= "Firewire (IEE1394) Network Adapter" if $_->[1] eq 'ip1394';
+ $_->[0] => join(': ', $_->[0], $_->[2]);
+ } @all_cards;
+ };
}
#- returns (link_type, mac_address)