From 9006f99d2dfcb94b0ac7ac340777d0534d344d8e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 12 Mar 2004 13:01:41 +0000 Subject: (apply) factorize interface hash --- perl-install/standalone/drakconnect | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/drakconnect') diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index fdbf20bff..930a76e72 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -688,8 +688,9 @@ sub update_list() { sub apply { my ($netc, $intf) = @_; - network::network::sethostname($netc) if is_dynamic_ip({ $intf }); - network::network::configureNetwork2($in, '', $netc, {$intf->{DEVICE} => $intf }); + my %intfs = ($intf->{DEVICE} => $intf); + network::network::sethostname($netc) if is_dynamic_ip(\%intfs); + network::network::configureNetwork2($in, '', $netc, \%intfs); } sub ethisup { `LC_ALL=C LANGUAGE=C /sbin/ifconfig $_[0]` =~ /inet/ } -- cgit v1.2.1