summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 17:08:50 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 17:08:50 +0000
commitf5d6d19dbd91b38ac13393d2be970f4580e5684b (patch)
tree533d878666bce5f1bdef3cb6d91ad9ef49a41a44
parent993967b89ce2e552294afe8c290a6c54ad60fe30 (diff)
downloaddrakx-net-f5d6d19dbd91b38ac13393d2be970f4580e5684b.tar
drakx-net-f5d6d19dbd91b38ac13393d2be970f4580e5684b.tar.gz
drakx-net-f5d6d19dbd91b38ac13393d2be970f4580e5684b.tar.bz2
drakx-net-f5d6d19dbd91b38ac13393d2be970f4580e5684b.tar.xz
drakx-net-f5d6d19dbd91b38ac13393d2be970f4580e5684b.zip
do not run the whole setup check if interface is already ok
-rwxr-xr-xlib/network/drakroam.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/drakroam.pm b/lib/network/drakroam.pm
index 459ff54..e308cf3 100755
--- a/lib/network/drakroam.pm
+++ b/lib/network/drakroam.pm
@@ -41,7 +41,8 @@ sub select_connection {
my ($droam) = @_;
$droam->{connection} = get_connection($droam);
- network::connection_manager::setup_connection($droam) if $droam->{connection};
+ network::connection_manager::check_setup($droam) || network::connection_manager::setup_connection($droam)
+ if $droam->{connection};
update_on_connection_change($droam);
}