summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2002-01-10 15:02:23 +0000
committerdamien <damien@mandriva.com>2002-01-10 15:02:23 +0000
commit6133180ed6fbecc3a345c1721b64d38d6483ffa2 (patch)
tree362cea31530338f87f5a285e6e17189ad38cea25 /perl-install
parent53a420689cbe6195f9fbc298d32235ab93a1c602 (diff)
downloaddrakx-6133180ed6fbecc3a345c1721b64d38d6483ffa2.tar
drakx-6133180ed6fbecc3a345c1721b64d38d6483ffa2.tar.gz
drakx-6133180ed6fbecc3a345c1721b64d38d6483ffa2.tar.bz2
drakx-6133180ed6fbecc3a345c1721b64d38d6483ffa2.tar.xz
drakx-6133180ed6fbecc3a345c1721b64d38d6483ffa2.zip
corrected network domainname pb
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 933ef2215..ee62d089d 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -71,7 +71,7 @@ sub write_conf {
FORWARD_IPV4 => "false",
HOSTNAME => "localhost.localdomain",
});
- ($netc->{DOMAINNAME}) = ($netc->{HOSTNAME} =~ /\.(.*)/);
+ ($netc->{DOMAINNAME}) ||= ($netc->{HOSTNAME} =~ /\.(.*)/);
setVarsInSh($file, $netc, qw(NETWORKING FORWARD_IPV4 DHCP_HOSTNAME HOSTNAME DOMAINNAME GATEWAY GATEWAYDEV NISDOMAIN));
}