summaryrefslogtreecommitdiffstats
path: root/perl-install/network/ethernet.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-19 21:11:34 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-19 21:11:34 +0000
commit59339d772ae8c7ea40857d11a97b74457b09d573 (patch)
tree8b79283fa88d0a93d1cbe57ba65d5b568f10e330 /perl-install/network/ethernet.pm
parent905e231f60d0056e0afacbc177640522bdda5023 (diff)
downloaddrakx-59339d772ae8c7ea40857d11a97b74457b09d573.tar
drakx-59339d772ae8c7ea40857d11a97b74457b09d573.tar.gz
drakx-59339d772ae8c7ea40857d11a97b74457b09d573.tar.bz2
drakx-59339d772ae8c7ea40857d11a97b74457b09d573.tar.xz
drakx-59339d772ae8c7ea40857d11a97b74457b09d573.zip
fix Titi sux (we do want to use sysfs if ethtool fails)
Diffstat (limited to 'perl-install/network/ethernet.pm')
-rw-r--r--perl-install/network/ethernet.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/ethernet.pm b/perl-install/network/ethernet.pm
index 0f748af23..87c7294b3 100644
--- a/perl-install/network/ethernet.pm
+++ b/perl-install/network/ethernet.pm
@@ -98,7 +98,7 @@ sub get_eth_cards {
if (!$description) {
my $drv = readlink("/sys/class/net/$interface/driver");
if ($drv && $drv =~ s!.*/!!) {
- $a = $drv if $detected_through_ethtool;
+ $a = $drv unless $detected_through_ethtool;
my %l;
my %sysfs_fields = (id => "device", subid => "subsystem_device", vendor => "vendor", subvendor => "subsystem_vendor");
$l{$_} = hex(chomp_(cat_("/sys/class/net/$interface/device/" . $sysfs_fields{$_}))) foreach keys %sysfs_fields;