summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakconnect3
1 files changed, 2 insertions, 1 deletions
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 });
}