From eedc1053052dc18b67262d769a49ab8e415b8205 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 10 Sep 2008 13:12:54 +0000 Subject: rely on module name instead of sysfs driver name (#42990) --- lib/network/connection/ethernet.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/network/connection/ethernet.pm') 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: -- cgit v1.2.1