summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-24 12:40:58 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-24 12:40:58 +0000
commitf93452c4ca9ac841a41c152f013c8fb960826f06 (patch)
tree173dcd585055867c3ecc787851edb0588f2293f5 /perl-install
parent29fd88d33aa2b48608099f261fdab58d45641bc2 (diff)
downloaddrakx-backup-do-not-use-f93452c4ca9ac841a41c152f013c8fb960826f06.tar
drakx-backup-do-not-use-f93452c4ca9ac841a41c152f013c8fb960826f06.tar.gz
drakx-backup-do-not-use-f93452c4ca9ac841a41c152f013c8fb960826f06.tar.bz2
drakx-backup-do-not-use-f93452c4ca9ac841a41c152f013c8fb960826f06.tar.xz
drakx-backup-do-not-use-f93452c4ca9ac841a41c152f013c8fb960826f06.zip
i sux
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 b2402413e..1bd0a2c72 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -420,7 +420,7 @@ sub configureNetwork2 {
write_conf("$etc/sysconfig/network", $netc);
write_resolv_conf("$etc/resolv.conf", $netc) if ! $netc->{DHCP};
write_interface_conf("$etc/sysconfig/network-scripts/ifcfg-$_->{DEVICE}", $_, $netc, $::prefix) foreach grep { $_->{DEVICE} ne 'ppp0' } values %$intf;
- add2hosts("$etc/hosts", $netc->{HOSTNAME}, "127.0.0.1") if $netc->{HOSTNAME});
+ add2hosts("$etc/hosts", $netc->{HOSTNAME}, "127.0.0.1") if $netc->{HOSTNAME};
add2hosts("$etc/hosts", "localhost", "127.0.0.1");
any { $_->{BOOTPROTO} eq "dhcp" } values %$intf and $in->do_pkgs->install($netc->{dhcp_client} || 'dhcp-client');