summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-03 05:28:34 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-03 05:28:34 +0000
commit0dfac417904576df46f095e4f5bb7aaaf10c7614 (patch)
tree5d9a922231905eb12d148006fd051947b7c0331a /perl-install
parent67194fca119aa81389dceb96e023ecae2bc8c164 (diff)
downloaddrakx-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar
drakx-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar.gz
drakx-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar.bz2
drakx-0dfac417904576df46f095e4f5bb7aaaf10c7614.tar.xz
drakx-0dfac417904576df46f095e4f5bb7aaaf10c7614.zip
don't save configuration dozens of times
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakconnect3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index c5056f888..2f2f7d78b 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -642,8 +642,9 @@ sub save {
gtkflush();
foreach (keys %$p) {
save_notebook($p->{$_}{intf}, $p->{$_}{gui}) or return;
- $p->{$_}{intf}{save} ? $p->{$_}{intf}{save}->() : apply();
+ $p->{$_}{intf}{save} and $p->{$_}{intf}{save}->();
}
+ apply();
system("/etc/rc.d/init.d/network restart");
$dialog->response(0);
});