summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-09-10 13:12:54 +0000
committerOlivier Blin <oblin@mandriva.com>2008-09-10 13:12:54 +0000
commiteedc1053052dc18b67262d769a49ab8e415b8205 (patch)
tree6d2caae8b59227b605538f6e59df6bee28b394c8 /lib/network/connection/ethernet.pm
parentda1b291ac6528a061498bbaf6a4a9453ad425a31 (diff)
downloaddrakx-net-eedc1053052dc18b67262d769a49ab8e415b8205.tar
drakx-net-eedc1053052dc18b67262d769a49ab8e415b8205.tar.gz
drakx-net-eedc1053052dc18b67262d769a49ab8e415b8205.tar.bz2
drakx-net-eedc1053052dc18b67262d769a49ab8e415b8205.tar.xz
drakx-net-eedc1053052dc18b67262d769a49ab8e415b8205.zip
rely on module name instead of sysfs driver name (#42990)
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-rw-r--r--lib/network/connection/ethernet.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm
index 713c6b1..31e98cc 100644
--- a/lib/network/connection/ethernet.pm
+++ b/lib/network/connection/ethernet.pm
@@ -385,8 +385,8 @@ sub interface_to_driver {
my $dev_path = get_interface_sysfs_path($interface);
#- FIXME: use $bus and move in get_interface_sysfs_path if possible
my $child = -f "$dev_path/idVendor" && first(glob("$dev_path/*-*:*.*"));
- $dev_path = $child if -f "$child/driver";
- detect_devices::get_sysfs_field_from_link($dev_path, 'driver');
+ $dev_path = $child if -f "$child/driver/module";
+ detect_devices::get_sysfs_field_from_link($dev_path, 'driver/module');
}
# return list of [ intf_name, module, device_description ] tuples such as: