diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:03:00 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:03:00 +0000 |
commit | 5ac00a05812e0e60c5fa0ab89ca798a7593c2331 (patch) | |
tree | d68d6056648197f5ae2a2cc21bb7e590829edb99 /lib/network/connection/ethernet.pm | |
parent | fa2da0694288cd74762cd5ca9a43e53e1f2ce1df (diff) | |
download | drakx-net-5ac00a05812e0e60c5fa0ab89ca798a7593c2331.tar drakx-net-5ac00a05812e0e60c5fa0ab89ca798a7593c2331.tar.gz drakx-net-5ac00a05812e0e60c5fa0ab89ca798a7593c2331.tar.bz2 drakx-net-5ac00a05812e0e60c5fa0ab89ca798a7593c2331.tar.xz drakx-net-5ac00a05812e0e60c5fa0ab89ca798a7593c2331.zip |
find sysfs device for alias interfaces (allows to uniquify Zeroconf interfaces, #38310)
Diffstat (limited to 'lib/network/connection/ethernet.pm')
-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') { |