diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-03-05 20:52:43 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-03-05 20:52:43 +0000 |
commit | fa2da0694288cd74762cd5ca9a43e53e1f2ce1df (patch) | |
tree | 06fdccefbac7d16b646e2976f459493da426eca5 /lib/network | |
parent | 1b58f7f03680c3262c479be6206633dbc2ab4525 (diff) | |
download | drakx-net-fa2da0694288cd74762cd5ca9a43e53e1f2ce1df.tar drakx-net-fa2da0694288cd74762cd5ca9a43e53e1f2ce1df.tar.gz drakx-net-fa2da0694288cd74762cd5ca9a43e53e1f2ce1df.tar.bz2 drakx-net-fa2da0694288cd74762cd5ca9a43e53e1f2ce1df.tar.xz drakx-net-fa2da0694288cd74762cd5ca9a43e53e1f2ce1df.zip |
show a unique entry per sysfs device (#33950)
Diffstat (limited to 'lib/network')
-rwxr-xr-x | lib/network/netcenter.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 025b145..ad86ec7 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -41,10 +41,10 @@ sub main { my $wait = $in->wait_message(N("Please wait"), N("Please wait")); my @all_connections = map { $_->get_connections(automatic_only => 1, fast_only => 1) } network::connection::get_types; - my ($intf, $no_intf) = partition { exists $_->{device}{interface} } @all_connections; + my ($sysfs, $no_sysfs) = partition { exists $_->{device}{sysfs_device} } @all_connections; my @connections = ( - (uniq_ { $_->{device} } @$no_intf), - (uniq_ { $_->{device}{interface} } @$intf) + (uniq_ { $_->{device}{sysfs_device} } @$sysfs), + (uniq_ { $_->{device}{interface} } @$no_sysfs) ); my $pixbufs = network::connection_manager::create_pixbufs(); |