summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-28 07:42:32 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-28 07:42:32 +0000
commit708b7e1c1a001b65038962a238b4eb8f7fe0bd91 (patch)
treee5388e14fed692e0037833ff2b66440033b427e8 /perl-install
parentd4c0b1e0c9e8b9404c972974313b1fd1bb4949e9 (diff)
downloaddrakx-708b7e1c1a001b65038962a238b4eb8f7fe0bd91.tar
drakx-708b7e1c1a001b65038962a238b4eb8f7fe0bd91.tar.gz
drakx-708b7e1c1a001b65038962a238b4eb8f7fe0bd91.tar.bz2
drakx-708b7e1c1a001b65038962a238b4eb8f7fe0bd91.tar.xz
drakx-708b7e1c1a001b65038962a238b4eb8f7fe0bd91.zip
do not restart network service in testing mode
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 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);