From 6778ba679af2769845d8d837917c8b9e7dafa3e1 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 4 Aug 2004 06:47:29 +0000 Subject: write a cnx_script for adsl connexions too (so that drakconnect can establish the connexion), add a FIXME comment to remind it is bad --- perl-install/network/netconnect.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index d3aac8101..22069f39c 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -815,6 +815,10 @@ If you don't know, choose 'use pppoe'"), post => sub { $netc->{internet_cnx_choice} = 'adsl'; network::adsl::adsl_conf_backend($in, $modules_conf, $netcnx, $netc, $ntf_name, $adsl_type, $netcnx); #FIXME + set_cnx_script($netc, "adsl", "ifup ppp0", + q(ifdown ppp0 +killall pppd +), $netcnx->{type}); $config->{adsl} = { kind => $ntf_name, protocol => $adsl_type }; $handle_multiple_cnx->(); }, @@ -1232,6 +1236,7 @@ It is not necessary on most networks."), if ($a) { # local $::isWizard = 0; my $_w = $in->wait_message('', N("Testing your connection..."), 1); + # FIXME: drop cnx_scripts (still used for modem connexions), use ifup/ifdown instead connect_backend(); my $s = 30; $type =~ /modem/ and $s = 50; -- cgit v1.2.1