summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakconnect
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-10-04 14:24:33 +0000
committerOlivier Blin <oblin@mandriva.org>2004-10-04 14:24:33 +0000
commitf792373ef451d6afa5f680cadc75b8715b7c5ecd (patch)
tree5e4b489b1be16c6a10b748cd13fc54a3af86be87 /perl-install/standalone/drakconnect
parenta19890db131db8f578e9d637b205344e6928539e (diff)
downloaddrakx-backup-do-not-use-f792373ef451d6afa5f680cadc75b8715b7c5ecd.tar
drakx-backup-do-not-use-f792373ef451d6afa5f680cadc75b8715b7c5ecd.tar.gz
drakx-backup-do-not-use-f792373ef451d6afa5f680cadc75b8715b7c5ecd.tar.bz2
drakx-backup-do-not-use-f792373ef451d6afa5f680cadc75b8715b7c5ecd.tar.xz
drakx-backup-do-not-use-f792373ef451d6afa5f680cadc75b8715b7c5ecd.zip
(apply) recompute NETWORK and BROADCAST fiels in manage interface
Diffstat (limited to 'perl-install/standalone/drakconnect')
-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 });
}