diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-10 00:15:49 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-10 00:15:49 +0000 |
commit | e84aeec953a835b14318bef46c70a8f4e6bc5e3d (patch) | |
tree | b03a22304685eb3003dfad2b3bf63111a25c064f /perl-install/network | |
parent | 63c47ccccde0395b8df118ac93b65ccb258ecea0 (diff) | |
download | drakx-backup-do-not-use-e84aeec953a835b14318bef46c70a8f4e6bc5e3d.tar drakx-backup-do-not-use-e84aeec953a835b14318bef46c70a8f4e6bc5e3d.tar.gz drakx-backup-do-not-use-e84aeec953a835b14318bef46c70a8f4e6bc5e3d.tar.bz2 drakx-backup-do-not-use-e84aeec953a835b14318bef46c70a8f4e6bc5e3d.tar.xz drakx-backup-do-not-use-e84aeec953a835b14318bef46c70a8f4e6bc5e3d.zip |
(mapIntfToDevice) match pci function too (not that important since we
do not know of any ethernet pci card that export two functions on the
pci bug but anyway it's saner)
note that we do not match for pci domain since ldetect does not report
it
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/ethernet.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm index 9f75ee65e..3740955a1 100644 --- a/perl-install/network/ethernet.pm +++ b/perl-install/network/ethernet.pm @@ -38,8 +38,8 @@ qq( sub mapIntfToDevice { my ($interface) = @_; - my ($bus, $slot, $_func) = map { hex($_) } (c::getHwIDs($interface) =~ /([0-9a-f]+):([0-9a-f]+)\.([0-9a-f]+)/); - grep { $_->{pci_bus} == $bus && $_->{pci_device} == $slot } detect_devices::probeall(); + my ($bus, $slot, $func) = map { hex($_) } (c::getHwIDs($interface) =~ /([0-9a-f]+):([0-9a-f]+)\.([0-9a-f]+)/); + grep { $_->{pci_bus} == $bus && $_->{pci_device} == $slot && $_->{pci_function} == $func } detect_devices::probeall(); } |