summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-02-12 15:08:43 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-02-12 15:08:43 +0000
commit8be2a83adf5c1badb7da2e70414348386d7ee794 (patch)
tree290305e0aa9c207b3dd098d614e4f5a736d1dd90
parent9ff2effc16b64bd7a6073e1d4cc3776bb009de61 (diff)
downloaddrakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar
drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar.gz
drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar.bz2
drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar.xz
drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.zip
do use the actual user's answer
-rw-r--r--perl-install/network/netconnect.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index fb35a37c1..ed073d6e2 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1087,7 +1087,8 @@ You may also enter the IP address of the gateway if you have one."),
name => N("The network needs to be restarted. Do you want to restart it ?"),
# data => [ { label => N("Connection:"), val => \$type, type => 'list', list => [ sort values %l ] }, ],
post => sub {
- if (!$::testing && !run_program::rooted($::prefix, "/etc/rc.d/init.d/network restart")) {
+ my ($a) = @_;
+ if ($a && !$::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);