summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-17 11:10:57 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-17 11:10:57 +0000
commit63a0b98ad2cd2c3c7ad61ae41efc433a60ae5c73 (patch)
treec74c03a640c5f4df9ba299150891e3c8f7ea7f28 /perl-install/network/ethernet.pm
parent6b53a74ddd8bff550a5da4795c5b3479454e38ff (diff)
downloaddrakx-backup-do-not-use-63a0b98ad2cd2c3c7ad61ae41efc433a60ae5c73.tar
drakx-backup-do-not-use-63a0b98ad2cd2c3c7ad61ae41efc433a60ae5c73.tar.gz
drakx-backup-do-not-use-63a0b98ad2cd2c3c7ad61ae41efc433a60ae5c73.tar.bz2
drakx-backup-do-not-use-63a0b98ad2cd2c3c7ad61ae41efc433a60ae5c73.tar.xz
drakx-backup-do-not-use-63a0b98ad2cd2c3c7ad61ae41efc433a60ae5c73.zip
(get_eth_cards) if SIOCETHTOOL ioctl is not supported by driver, try
to lookup card by driver in devices list (if there's only one physical card managed by this driver)
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index 5e95e25c8..baf52d82d 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -61,6 +61,10 @@ sub get_eth_cards() {
} else {
($description) = (mapIntfToDevice($interface))[0]->{description};
}
+ if (!$description and my $driver = $a || $saved_driver) {
+ my @cards = grep { $_->{driver} eq $driver } detect_devices::probeall();
+ $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) ]
} @all_cards;