summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-03-25 11:04:01 +0000
committerOlivier Blin <oblin@mandriva.com>2009-03-25 11:04:01 +0000
commit3c546d83afdacde63fcd7943a74f9593985a060b (patch)
treeea0196da397bd64706da5c5601b722f9fad4576d
parentaeb764ac1e821068d3b8fba3bb1c32d041e147f3 (diff)
downloaddrakx-net-3c546d83afdacde63fcd7943a74f9593985a060b.tar
drakx-net-3c546d83afdacde63fcd7943a74f9593985a060b.tar.gz
drakx-net-3c546d83afdacde63fcd7943a74f9593985a060b.tar.bz2
drakx-net-3c546d83afdacde63fcd7943a74f9593985a060b.tar.xz
drakx-net-3c546d83afdacde63fcd7943a74f9593985a060b.zip
set NETWORKING=yes when configuring an interface
-rw-r--r--lib/network/connection.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm
index 65d8cb0..aa05ab6 100644
--- a/lib/network/connection.pm
+++ b/lib/network/connection.pm
@@ -260,11 +260,12 @@ sub build_ifcfg_settings {
}
sub write_settings {
- my ($self, $_o_net, $_o_modules_conf) = @_;
+ my ($self, $o_net, $_o_modules_conf) = @_;
require network::network;
my $file = network::network::get_ifcfg_file($self->get_interface);
network::network::write_interface_settings($self->build_ifcfg_settings, $file);
network::network::write_hostname($self->{address}{hostname}) if $self->{address}{hostname};
+ network::network::write_network_conf($o_net) if $o_net;
require network::shorewall;
network::shorewall::update_interfaces_list($self->get_interface);
network::network::reload_net_applet();