diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-26 17:26:50 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-26 17:26:50 +0000 |
commit | e1df22b070059f5d8c7d4ebcf816356047099552 (patch) | |
tree | 35776ac0cc7a676afadf517ceb7ba1c6f66246da /lib/network | |
parent | 9a9e8f11fc07c17a4a33ab57f33faa8c9df90bb2 (diff) | |
download | drakx-net-e1df22b070059f5d8c7d4ebcf816356047099552.tar drakx-net-e1df22b070059f5d8c7d4ebcf816356047099552.tar.gz drakx-net-e1df22b070059f5d8c7d4ebcf816356047099552.tar.bz2 drakx-net-e1df22b070059f5d8c7d4ebcf816356047099552.tar.xz drakx-net-e1df22b070059f5d8c7d4ebcf816356047099552.zip |
do not scan networks at startup if device is unavailable
Diffstat (limited to 'lib/network')
-rwxr-xr-x | lib/network/netcenter.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 64963c4..d52e087 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -19,8 +19,9 @@ sub build_cmanager { if ($connection->can('get_networks')) { network::connection_manager::create_networks_list($cmanager); + #- do not check if it is slow (either scan or device check) or unavailable network::connection_manager::update_networks($cmanager) - if !$connection->network_scan_is_slow; + if !$connection->network_scan_is_slow && network::connection_manager::check_setup($cmanager); } $cmanager; } |