From 79eb529cf8fa2fae5fac623ed2b1bac053fe3994 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 30 Apr 2010 12:55:13 +0000 Subject: fix detecting sysfs bus (only applies to ieee1394 subsystem) --- NEWS | 2 ++ lib/network/connection/ethernet.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9f1e83e..3613609 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- fix detecting sysfs bus (only applies to ieee1394 subsystem) + 0.88: - allow draknetprofile module selection to use whole screen. - properly configure nlockmgr ports (#51431) diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index 4be7a88..7b76396 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -363,7 +363,7 @@ sub get_interface_sysfs_path { my ($interface) = @_; $interface = network::tools::get_real_interface($interface); my $dev_path = "/sys/class/net/$interface/device"; - my $bus = detect_devices::get_sysfs_field_from_link($dev_path, 'bus'); + my $bus = detect_devices::get_sysfs_field_from_link($dev_path, "subsystem"); if ($bus eq 'ieee1394') { my $child = first(glob("$dev_path/host_id/*-*")); $dev_path = $child if $child; -- cgit v1.2.1