From 0704df229e24c4ace404399bbaf08d6b791d8da8 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 6 Jun 2005 05:54:58 +0000 Subject: simplify apply() since sethostname() is done by configure_network() --- perl-install/standalone/drakconnect | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'perl-install/standalone') 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); } -- cgit v1.2.1