summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-29 10:27:20 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-29 10:27:20 +0000
commit9accd8ac5cb1aecb6e6e278968c3ee518adb2662 (patch)
tree024e4f75de25f0dfb480ea3eee2422647dfa8e05 /perl-install
parente3b59b4e2dfdbd44d5735986f26ea586304f50f4 (diff)
downloaddrakx-9accd8ac5cb1aecb6e6e278968c3ee518adb2662.tar
drakx-9accd8ac5cb1aecb6e6e278968c3ee518adb2662.tar.gz
drakx-9accd8ac5cb1aecb6e6e278968c3ee518adb2662.tar.bz2
drakx-9accd8ac5cb1aecb6e6e278968c3ee518adb2662.tar.xz
drakx-9accd8ac5cb1aecb6e6e278968c3ee518adb2662.zip
(handle_multiple_cnx) only restart network for ADSL if we use an
ethernet modem
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 4fc86e0e3..1cfa15075 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -212,7 +212,7 @@ sub real_main {
};
my $handle_multiple_cnx = sub {
- $need_restart_network = 1 if $netcnx->{type} =~ /adsl|cable|lan/;
+ $need_restart_network = member($netcnx->{type}, qw(cable lan)) || $netcnx->{type} eq 'adsl' && $adsl_devices{$ntf_name};
my $nb = keys %{$netc->{internet_cnx}};
if (1 < $nb) {
return "multiple_internet_cnx";