diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-10-04 14:24:33 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-10-04 14:24:33 +0000 |
commit | f792373ef451d6afa5f680cadc75b8715b7c5ecd (patch) | |
tree | 5e4b489b1be16c6a10b748cd13fc54a3af86be87 | |
parent | a19890db131db8f578e9d637b205344e6928539e (diff) | |
download | drakx-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
-rwxr-xr-x | perl-install/standalone/drakconnect | 3 |
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 }); } |