summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-05 20:52:43 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-05 20:52:43 +0000
commitfa2da0694288cd74762cd5ca9a43e53e1f2ce1df (patch)
tree06fdccefbac7d16b646e2976f459493da426eca5 /lib/network
parent1b58f7f03680c3262c479be6206633dbc2ab4525 (diff)
downloaddrakx-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-xlib/network/netcenter.pm6
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();