summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2004-05-04 15:04:24 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2004-05-04 15:04:24 +0000
commit0551c01861a02e95501f97bf224876489ebe396b (patch)
tree19956568a2683b441ce51f375001ab0f27c73247
parentc6e7adc030a5942aa5a24c7c3e81f38b92c368c2 (diff)
downloaddrakx-0551c01861a02e95501f97bf224876489ebe396b.tar
drakx-0551c01861a02e95501f97bf224876489ebe396b.tar.gz
drakx-0551c01861a02e95501f97bf224876489ebe396b.tar.bz2
drakx-0551c01861a02e95501f97bf224876489ebe396b.tar.xz
drakx-0551c01861a02e95501f97bf224876489ebe396b.zip
use @cards instead of $#cards as told by master pipi
-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 3d7888ca7..845d7b3d8 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]{description} if $#cards == 0;
+ $description = $cards[0]{descripxtion} if @cards == 1;
}
$a and $saved_driver = $a; # handle multiple cards managed by the same driver
[ $interface, $saved_driver, if_($description, $description) ]