diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:34:40 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-05 21:34:40 +0000 |
commit | 2f6b787a7b947c385e308d92e3fc83126b2cf8a6 (patch) | |
tree | 97c6ac2f93b8c8e918bab32acf1bd77e8499b4b8 /lib | |
parent | 455cc281d5e7640d47cdb8df783eb93513a9e088 (diff) | |
download | drakx-net-2f6b787a7b947c385e308d92e3fc83126b2cf8a6.tar drakx-net-2f6b787a7b947c385e308d92e3fc83126b2cf8a6.tar.gz drakx-net-2f6b787a7b947c385e308d92e3fc83126b2cf8a6.tar.bz2 drakx-net-2f6b787a7b947c385e308d92e3fc83126b2cf8a6.tar.xz drakx-net-2f6b787a7b947c385e308d92e3fc83126b2cf8a6.zip |
always set interface for unlisted devices
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/connection/ethernet.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/connection/ethernet.pm b/lib/network/connection/ethernet.pm index c676688..16fe0c9 100644 --- a/lib/network/connection/ethernet.pm +++ b/lib/network/connection/ethernet.pm @@ -24,7 +24,8 @@ sub get_unlisted_devices { my ($interfaces, $listed_devices) = @_; my @unlisted_interfaces = sort(difference2($interfaces, [ map { device_to_interface($_) } @$listed_devices ])); map { - my %device = %{interface_to_device($_) || +{ interface => $_, description => $_ }}; + my %device = %{interface_to_device($_) || +{ description => $_ }}; + $device{interface} = $_; $device{description} = N("Virtual interface") if network::tools::is_virtual_interface($_); \%device; } @unlisted_interfaces; |