diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-04-19 21:11:34 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-04-19 21:11:34 +0000 |
commit | 59339d772ae8c7ea40857d11a97b74457b09d573 (patch) | |
tree | 8b79283fa88d0a93d1cbe57ba65d5b568f10e330 | |
parent | 905e231f60d0056e0afacbc177640522bdda5023 (diff) | |
download | drakx-backup-do-not-use-59339d772ae8c7ea40857d11a97b74457b09d573.tar drakx-backup-do-not-use-59339d772ae8c7ea40857d11a97b74457b09d573.tar.gz drakx-backup-do-not-use-59339d772ae8c7ea40857d11a97b74457b09d573.tar.bz2 drakx-backup-do-not-use-59339d772ae8c7ea40857d11a97b74457b09d573.tar.xz drakx-backup-do-not-use-59339d772ae8c7ea40857d11a97b74457b09d573.zip |
fix Titi sux (we do want to use sysfs if ethtool fails)
-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 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; |