summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-11-07 17:10:11 +0000
committerOlivier Blin <oblin@mandriva.org>2005-11-07 17:10:11 +0000
commitb9e8007cdbc5c38476f16350e6761168b52f0456 (patch)
tree177a91a5e81ab94aaaa730fd6280c8ceb9b0b602 /perl-install/network/ethernet.pm
parentbae38ba3c1d5e06fe68f06b7de3a75c15291af5c (diff)
downloaddrakx-backup-do-not-use-b9e8007cdbc5c38476f16350e6761168b52f0456.tar
drakx-backup-do-not-use-b9e8007cdbc5c38476f16350e6761168b52f0456.tar.gz
drakx-backup-do-not-use-b9e8007cdbc5c38476f16350e6761168b52f0456.tar.bz2
drakx-backup-do-not-use-b9e8007cdbc5c38476f16350e6761168b52f0456.tar.xz
drakx-backup-do-not-use-b9e8007cdbc5c38476f16350e6761168b52f0456.zip
fix rt2400/rt2500 devices detection (workaround for their missing "device" link in sysfs)
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index 572a33ae8..ec4073ee0 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -90,6 +90,11 @@ sub get_eth_cards {
$l{$_} = hex(chomp_(cat_("$dev_path/" . $sysfs_fields->{$_}))) foreach keys %$sysfs_fields;
my @cards = grep { my $dev = $_; every { $dev->{$_} eq $l{$_} } keys %l } detect_devices::probeall();
$description ||= $cards[0]{description} if @cards == 1;
+ } elsif (!$a && -e "/sys/class/net/$interface/wireless") {
+ # probably a rt2400/rt2500 device (PCI or PCMCIA CardBus)
+ # these broken drivers don't create the "device" link
+ # try to see if rt2400/rt2500 is loaded, and assume current wireless device uses it
+ $a = find { -e "/sys/bus/pci/drivers/$_" } qw(rt2400 rt2500);
}
}
# 6) try to match a device by driver for device description: