summaryrefslogtreecommitdiffstats
path: root/lib/network/netconnect.pm
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-31 14:48:16 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-31 14:48:16 +0000
commit4f92863478e39595fd8d5afdd927426367b1ccc1 (patch)
tree145c7aec77cce1affa606556d8a179255491dcb5 /lib/network/netconnect.pm
parent7e2bcb106c9dcfc637842342bd8aa347bc5b9dae (diff)
downloaddrakx-net-4f92863478e39595fd8d5afdd927426367b1ccc1.tar
drakx-net-4f92863478e39595fd8d5afdd927426367b1ccc1.tar.gz
drakx-net-4f92863478e39595fd8d5afdd927426367b1ccc1.tar.bz2
drakx-net-4f92863478e39595fd8d5afdd927426367b1ccc1.tar.xz
drakx-net-4f92863478e39595fd8d5afdd927426367b1ccc1.zip
Checking for connection to be up during installation.
Diffstat (limited to 'lib/network/netconnect.pm')
-rw-r--r--lib/network/netconnect.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm
index 1e2a614..f344b34 100644
--- a/lib/network/netconnect.pm
+++ b/lib/network/netconnect.pm
@@ -311,7 +311,16 @@ If you do not know it, keep the preselected protocol.") },
$connection->connect;
#- FIXME: should use network::test for ppp (after future merge with network::connection)
#- or start interface synchronously
- services::start('network-up') unless $::isInstall;
+ if (!$::isInstall) {
+ services::start('network-up');
+ } else {
+ my $timeout = $connection->get_up_timeout;
+ while ($timeout--) {
+ my $status = $connection->get_status;
+ last if $status;
+ sleep 1;
+ }
+ }
$success = $connection->get_status();
$has_internet = network::tools::connected();
}