From 93bf03a92166625f23b7709add3793ab8ce48c75 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 25 May 2004 07:25:44 +0000 Subject: (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 --- perl-install/network/ethernet.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ] -- cgit v1.2.1