From 675829068cf6ca98fec57a57b1872624afff7919 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 7 Jul 2005 07:47:00 +0000 Subject: do not restart network to apply modifications, run ifup or ifplugd instead --- perl-install/network/netconnect.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'perl-install') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 76fd01044..0ff164c5a 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -158,9 +158,18 @@ sub real_main { ); my $offer_to_connect = sub { + network::tools::stop_ifplugd($net->{net_interface}); + if ($net->{type} eq 'adsl' && !member($net->{adsl}{method}, qw(static dhcp)) || member($net->{type}, qw(modem isdn isdn_external))) { return "ask_connect_now"; + } else { + network::tools::stop_net_interface($net, 0); + if ($ethntf->{MII_NOT_SUPPORTED} eq "yes" || $::isInstall) { + network::tools::start_net_interface($net, 0); + } else { + network::tools::start_ifplugd($net->{net_interface}); + } } return "end"; }; -- cgit v1.2.1