summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-12 12:55:44 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-12 12:55:44 +0000
commit8cdbcbe027b2c10254141f4c9460e6c6629b16c8 (patch)
tree3effde33272298db8fca44e8a1e2905bef93b6a8 /perl-install/standalone
parentca397438d3a301b06ff4f9924d4a9c9b96ccf4e5 (diff)
downloaddrakx-8cdbcbe027b2c10254141f4c9460e6c6629b16c8.tar
drakx-8cdbcbe027b2c10254141f4c9460e6c6629b16c8.tar.gz
drakx-8cdbcbe027b2c10254141f4c9460e6c6629b16c8.tar.bz2
drakx-8cdbcbe027b2c10254141f4c9460e6c6629b16c8.tar.xz
drakx-8cdbcbe027b2c10254141f4c9460e6c6629b16c8.zip
(apply) fix crash (is_dynamic_ip expect a hash of network interaces,
not a single interface)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakconnect3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index d87c77b07..fdbf20bff 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -688,8 +688,7 @@ sub update_list() {
sub apply {
my ($netc, $intf) = @_;
-
- network::network::sethostname($netc) if is_dynamic_ip($intf);
+ network::network::sethostname($netc) if is_dynamic_ip({ $intf });
network::network::configureNetwork2($in, '', $netc, {$intf->{DEVICE} => $intf });
}