summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/network.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 67dd579bf..9624c1c11 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -104,7 +104,6 @@ sub write_network_conf {
$net->{network}{NETWORKING} = 'yes';
setVarsInSh($::prefix . $network_file, $net->{network}, qw(HOSTNAME NETWORKING GATEWAY GATEWAYDEV NISDOMAIN FORWARD_IPV4 NETWORKING_IPV6 IPV6_DEFAULTDEV));
- $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net);
}
sub write_zeroconf {
@@ -608,6 +607,8 @@ sub configure_network {
require network::shorewall;
my $shorewall = network::shorewall::read();
$shorewall && !$shorewall->{disabled} and network::shorewall::write($shorewall);
+
+ $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net);
}
#- make net_applet reload the configuration