From 9accd8ac5cb1aecb6e6e278968c3ee518adb2662 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 29 Jul 2004 10:27:20 +0000 Subject: (handle_multiple_cnx) only restart network for ADSL if we use an ethernet modem --- perl-install/network/netconnect.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.1