From f792373ef451d6afa5f680cadc75b8715b7c5ecd Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 4 Oct 2004 14:24:33 +0000 Subject: (apply) recompute NETWORK and BROADCAST fiels in manage interface --- perl-install/standalone/drakconnect | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index a4cd99754..4ad84f8e4 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -749,7 +749,8 @@ sub apply { my ($netc, $intf) = @_; my $dyn = $intf->{BOOTPROTO} ne 'static'; my $lintf = $intf; - $dyn and $lintf->{$_} = undef foreach qw(NETMASK NETWORK IPADDR); + #- always delete NETWORK and BROADCAST fields so that they get automatically recomputed by write_interface_conf + delete $lintf->{$_} foreach qw(NETWORK BROADCAST), if_($dyn, qw(IPADDR NETMASK)); network::network::sethostname($netc) if $dyn; network::network::configureNetwork2($in, $modules_conf, '', $netc, { $lintf->{DEVICE} => $lintf }); } -- cgit v1.2.1