summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-06 05:53:47 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-06 05:53:47 +0000
commita899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e (patch)
tree840de7504a5ff2da7aa88af32b2cd0368c022d20
parent7640365e3ec1a9d986984e86fcfaeda3a573dc59 (diff)
downloaddrakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar
drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar.gz
drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar.bz2
drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar.xz
drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.zip
set system hostname when writing network configuration
-rw-r--r--perl-install/network/network.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 7184d17e7..71b99bb39 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -99,6 +99,7 @@ sub write_network_conf {
$net->{network}{NETWORKING} = 'yes';
setVarsInSh($network_file, $net->{network}, qw(HOSTNAME NETWORKING GATEWAY GATEWAYDEV NISDOMAIN FORWARD_IPV4 NETWORKING_IPV6));
+ $net->{network}{HOSTNAME} and sethostname($net) unless $::isInstall;
}
sub write_zeroconf {