summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-06-06 06:10:50 +0000
committerOlivier Blin <oblin@mandriva.org>2005-06-06 06:10:50 +0000
commita2b0632beac5ac3ebe7ef0366dcabe71be0f4944 (patch)
treeb9cb94a6516cd45e50cb649a216effd83e64db3a /perl-install
parente08e5e675d092a663b5fa7371426bf7f11f50bbf (diff)
downloaddrakx-a2b0632beac5ac3ebe7ef0366dcabe71be0f4944.tar
drakx-a2b0632beac5ac3ebe7ef0366dcabe71be0f4944.tar.gz
drakx-a2b0632beac5ac3ebe7ef0366dcabe71be0f4944.tar.bz2
drakx-a2b0632beac5ac3ebe7ef0366dcabe71be0f4944.tar.xz
drakx-a2b0632beac5ac3ebe7ef0366dcabe71be0f4944.zip
make it more readable
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/network.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 71b99bb39..d363ac7a2 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -99,7 +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;
+ $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net);
}
sub write_zeroconf {