From 708b7e1c1a001b65038962a238b4eb8f7fe0bd91 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 28 Nov 2003 07:42:32 +0000 Subject: do not restart network service in testing mode --- perl-install/network/netconnect.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm index 1f3149ffd..e053481cb 100644 --- a/perl-install/network/netconnect.pm +++ b/perl-install/network/netconnect.pm @@ -186,7 +186,7 @@ If you don't want to use the auto detection, deselect the checkbox. step_2_2: eval { if ($netconnect::need_restart_network && $::isStandalone && (!$::expert || $in->ask_yesorno(N("Network configuration"), N("The network needs to be restarted. Do you want to restart it ?"), 1))) { - if (!run_program::rooted($prefix, "/etc/rc.d/init.d/network restart")) { + if (!$::testing && !run_program::rooted($prefix, "/etc/rc.d/init.d/network restart")) { $success = 0; $in->ask_okcancel(N("Network Configuration"), N("A problem occured while restarting the network: \n\n%s", `/etc/rc.d/init.d/network restart`), 0); -- cgit v1.2.1