diff options
Diffstat (limited to 'lib/network/connection')
-rw-r--r-- | lib/network/connection/ethernet.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index 1381f1a..2f4e7af 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -339,6 +339,7 @@ sub device_matches_interface_HwIDs { sub get_interface_sysfs_path { my ($interface) = @_; + $interface =~ s/:\d+$//; my $dev_path = "/sys/class/net/$interface/device"; my $bus = detect_devices::get_sysfs_field_from_link($dev_path, 'bus'); if ($bus eq 'ieee1394') { |