summaryrefslogtreecommitdiffstats
path: root/lib/network/connection/ethernet.pm
diff options
context:
space:
mode:
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: