summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rwxr-xr-xperl-install/standalone/drakconnect7
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index 3c2305b7d..7528675fe 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -644,7 +644,7 @@ sub save {
gtkflush();
foreach (keys %$p) {
save_notebook($p->{$_}{intf}, $p->{$_}{gui}) or return;
- $p->{$_}{intf}{save} ? $p->{$_}{intf}{save}->() : apply($p->{$_}{intf});
+ $p->{$_}{intf}{save} ? $p->{$_}{intf}{save}->() : apply();
}
system("/etc/rc.d/init.d/network restart");
$dialog->response(0);
@@ -786,10 +786,7 @@ sub update_list {
}
}
-sub apply {
- my ($intf) = @_;
- my $dyn = $intf->{BOOTPROTO} ne 'static';
- network::network::sethostname($net) if $dyn;
+sub apply() {
network::network::configure_network($net, $in, $modules_conf);
}