summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-07 07:01:26 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-07 07:01:26 +0000
commitf0f54fec1e8a3c7b8e24be3de3dc12deac4998dc (patch)
treef8645f310c3bdd52746f574a51ae027af57f39ab /perl-install/network/netconnect.pm
parentc5abf3c8716b1e731cb08a341281bff55339b99f (diff)
downloaddrakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar
drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.gz
drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.bz2
drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.xz
drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.zip
remove connect/diconnect_backend
add start/stop_net_interface add detach parameter to start/stop_interface
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 6b1672ad3..76fd01044 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1272,9 +1272,9 @@ It is not necessary on most networks."),
if ($a) {
# local $::isWizard = 0;
my $_w = $in->wait_message('', N("Testing your connection..."), 1);
- network::tools::disconnect_backend($net);
+ network::tools::stop_net_interface($net, 0);
sleep 1;
- network::tools::connect_backend($net);
+ network::tools::start_net_interface($net, 1);
my $s = 30;
$type =~ /modem/ and $s = 50;
$type =~ /adsl/ and $s = 35;
@@ -1361,12 +1361,12 @@ sub start_internet {
#- give a chance for module to be loaded using kernel-BOOT modules...
#- FIXME, this has nothing to do there
$::isStandalone or modules::load_category($o->{modules_conf}, 'network/*');
- network::tools::start_interface($o->{net}{net_interface});
+ network::tools::start_net_interface($o->{net}, 1);
}
sub stop_internet {
my ($o) = @_;
- network::tools::stop_interface($o->{net}{net_interface});
+ network::tools::stop_net_interface($o->{net}, 1);
}
1;