diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-12 15:08:43 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-12 15:08:43 +0000 |
commit | 8be2a83adf5c1badb7da2e70414348386d7ee794 (patch) | |
tree | 290305e0aa9c207b3dd098d614e4f5a736d1dd90 /perl-install/network/netconnect.pm | |
parent | 9ff2effc16b64bd7a6073e1d4cc3776bb009de61 (diff) | |
download | drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar.gz drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar.bz2 drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.tar.xz drakx-8be2a83adf5c1badb7da2e70414348386d7ee794.zip |
do use the actual user's answer
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r-- | perl-install/network/netconnect.pm | 3 |
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); |