diff options
author | Olivier Blin <oblin@mandriva.com> | 2010-04-30 12:55:13 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2010-04-30 12:55:13 +0000 |
commit | 79eb529cf8fa2fae5fac623ed2b1bac053fe3994 (patch) | |
tree | 483b88a833b0aff936c0a872b6af8da805012c7a /lib | |
parent | 13324cb1ab850679a562aad101eea5f90ac1cd19 (diff) | |
download | drakx-net-79eb529cf8fa2fae5fac623ed2b1bac053fe3994.tar drakx-net-79eb529cf8fa2fae5fac623ed2b1bac053fe3994.tar.gz drakx-net-79eb529cf8fa2fae5fac623ed2b1bac053fe3994.tar.bz2 drakx-net-79eb529cf8fa2fae5fac623ed2b1bac053fe3994.tar.xz drakx-net-79eb529cf8fa2fae5fac623ed2b1bac053fe3994.zip |
fix detecting sysfs bus (only applies to ieee1394 subsystem)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/ethernet.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |