diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-26 22:17:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-26 22:17:22 +0000 |
commit | 3643c4bba3da780bf3eb7cfde157c69d3bbe91be (patch) | |
tree | 66ae3e5af22a44796686aa1ecbe0b690c8f9651a /perl-install/network/ethernet.pm | |
parent | f29199945cb7381f137b5f62102e7fce67146a34 (diff) | |
download | drakx-3643c4bba3da780bf3eb7cfde157c69d3bbe91be.tar drakx-3643c4bba3da780bf3eb7cfde157c69d3bbe91be.tar.gz drakx-3643c4bba3da780bf3eb7cfde157c69d3bbe91be.tar.bz2 drakx-3643c4bba3da780bf3eb7cfde157c69d3bbe91be.tar.xz drakx-3643c4bba3da780bf3eb7cfde157c69d3bbe91be.zip |
(mapIntfToDevice) actually use given interface rather than hardcoded "eth0"
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r-- | perl-install/network/ethernet.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm index ee74e16bb..a8c25ecb3 100644 --- a/perl-install/network/ethernet.pm +++ b/perl-install/network/ethernet.pm @@ -40,7 +40,7 @@ qq( sub mapIntfToDevice { my ($interface) = @_; - my ($bus, $slot, $_func) = map { hex($_) } (c::getHwIDs("eth0") =~ /([0-9a-f])+:([0-9a-f])+\.([0-9a-f]+)/); + 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(); } |