From d2a1fbbcc6886bb19da39a396cd87e2569d62742 Mon Sep 17 00:00:00 2001 From: damien Date: Thu, 20 Sep 2001 15:09:15 +0000 Subject: don't reapply the conf, if already applied. usefull for dhcp, because the network should be restarted after configured --- perl-install/network/netconnect.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 6d3805566..79e605862 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -234,6 +234,7 @@ ifdown eth0 step_3: network::configureNetwork2($in, $prefix, $netc, $intf); + my $network_configured = 1; if ($netconnect::need_restart_network && $::isStandalone and ($::expert or $in->ask_yesorno(_("Network configuration"), _("The network needs to be restarted"), 1))) { @@ -258,7 +259,7 @@ environnement to avoid hostname changing problem.")); step_5: - network::configureNetwork2($in, $prefix, $netc, $intf); + $network_configured or network::configureNetwork2($in, $prefix, $netc, $intf); if ($netcnx->{type} =~ /modem/ || $netcnx->{type} =~ /isdn_external/) { output "$prefix$connect_prog", -- cgit v1.2.1