summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2003-01-16 15:24:22 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2003-01-16 15:24:22 +0000
commitcd28bfca4427f91e062fdb30fb661db88c9ca9cf (patch)
tree858cd3e102a4b17bc32818be02e06af537b777d6 /perl-install/network/network.pm
parentee9e50fde5fe286713a20ea852a2bdc3b44ab40e (diff)
downloaddrakx-backup-do-not-use-cd28bfca4427f91e062fdb30fb661db88c9ca9cf.tar
drakx-backup-do-not-use-cd28bfca4427f91e062fdb30fb661db88c9ca9cf.tar.gz
drakx-backup-do-not-use-cd28bfca4427f91e062fdb30fb661db88c9ca9cf.tar.bz2
drakx-backup-do-not-use-cd28bfca4427f91e062fdb30fb661db88c9ca9cf.tar.xz
drakx-backup-do-not-use-cd28bfca4427f91e062fdb30fb661db88c9ca9cf.zip
- fix /etc/hosts localhost.localdomain in localhost
Diffstat (limited to 'perl-install/network/network.pm')
-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 870f5f7e6..e07ef1bfe 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -473,6 +473,7 @@ sub configureNetwork2 {
write_conf("$etc/sysconfig/network", $netc);
write_resolv_conf("$etc/resolv.conf", $netc);
write_interface_conf("$etc/sysconfig/network-scripts/ifcfg-$_->{DEVICE}", $_, $prefix) foreach grep { $_->{DEVICE} } values %$intf;
+ add2hosts("$etc/hosts", "localhost", "127.0.0.1");
add2hosts("$etc/hosts", $netc->{HOSTNAME}, map { $_->{IPADDR} } values %$intf);
if (any { $_->{BOOTPROTO} =~ /^(dhcp)$/ } values %$intf) {