summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-05-25 07:25:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-05-25 07:25:44 +0000
commit93bf03a92166625f23b7709add3793ab8ce48c75 (patch)
treebd234d3240792e93d09c7dc696b9162d85a1f4c5 /perl-install/network/ethernet.pm
parent08e10b48c82806fb62a992fce834f9fd2c250fc0 (diff)
downloaddrakx-93bf03a92166625f23b7709add3793ab8ce48c75.tar
drakx-93bf03a92166625f23b7709add3793ab8ce48c75.tar.gz
drakx-93bf03a92166625f23b7709add3793ab8ce48c75.tar.bz2
drakx-93bf03a92166625f23b7709add3793ab8ce48c75.tar.xz
drakx-93bf03a92166625f23b7709add3793ab8ce48c75.zip
(get_eth_cards) brown paper bug: fix card name lookup when driver does
not support GDRVINFO command from ETHTOOL ioctl and there's only one card managed by this driver
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index 845d7b3d8..d5db313f1 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -63,7 +63,7 @@ sub get_eth_cards() {
}
if (!$description) {
my @cards = grep { $_->{driver} eq ($a || $saved_driver) } detect_devices::probeall();
- $description = $cards[0]{descripxtion} if @cards == 1;
+ $description = $cards[0]->{description} if $#cards == 0;
}
$a and $saved_driver = $a; # handle multiple cards managed by the same driver
[ $interface, $saved_driver, if_($description, $description) ]