summaryrefslogtreecommitdiffstats
path: root/lib/network/netconnect.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-04 16:09:41 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-04 16:09:41 +0000
commitc58d972a55e15aa185ab30a044507e12afabc295 (patch)
treee7d7bda27e0ddd298bc8dfbf49339f88c56e87e5 /lib/network/netconnect.pm
parent676de7dd0e5c83897d3799e93e3d0f29fe7064b6 (diff)
downloaddrakx-net-c58d972a55e15aa185ab30a044507e12afabc295.tar
drakx-net-c58d972a55e15aa185ab30a044507e12afabc295.tar.gz
drakx-net-c58d972a55e15aa185ab30a044507e12afabc295.tar.bz2
drakx-net-c58d972a55e15aa185ab30a044507e12afabc295.tar.xz
drakx-net-c58d972a55e15aa185ab30a044507e12afabc295.zip
use network-up to wait for connection to be started
(useful when called right before adding urpmi media)
Diffstat (limited to 'lib/network/netconnect.pm')
-rw-r--r--lib/network/netconnect.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm
index de221a4..607c115 100644
--- a/lib/network/netconnect.pm
+++ b/lib/network/netconnect.pm
@@ -315,6 +315,9 @@ If you do not know it, keep the preselected protocol.") },
if ($answer) {
$connection->disconnect;
$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;
}
"end"; #- handle disconnection in install?
},