diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-06-06 05:53:47 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-06-06 05:53:47 +0000 |
commit | a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e (patch) | |
tree | 840de7504a5ff2da7aa88af32b2cd0368c022d20 /perl-install/network/network.pm | |
parent | 7640365e3ec1a9d986984e86fcfaeda3a573dc59 (diff) | |
download | drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar.gz drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar.bz2 drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.tar.xz drakx-a899674b1f05130dcd7ff9eed7e90c3bd0cd7b8e.zip |
set system hostname when writing network configuration
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r-- | perl-install/network/network.pm | 1 |
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 { |