From b9e8007cdbc5c38476f16350e6761168b52f0456 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 7 Nov 2005 17:10:11 +0000 Subject: fix rt2400/rt2500 devices detection (workaround for their missing "device" link in sysfs) --- perl-install/network/ethernet.pm | 5 +++++ 1 file changed, 5 insertions(+) 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: -- cgit v1.2.1