diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-03-05 11:10:51 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-03-05 11:10:51 +0000 |
commit | c54495aa9155ed0e423d50f79ab95ad997668328 (patch) | |
tree | 2c2c1af366a8bfcafe18e50e1849e6cf0af788cd /perl-install/network/network.pm | |
parent | c9204b92a05481ff900c9f7ed03b0a04815dc23c (diff) | |
download | drakx-c54495aa9155ed0e423d50f79ab95ad997668328.tar drakx-c54495aa9155ed0e423d50f79ab95ad997668328.tar.gz drakx-c54495aa9155ed0e423d50f79ab95ad997668328.tar.bz2 drakx-c54495aa9155ed0e423d50f79ab95ad997668328.tar.xz drakx-c54495aa9155ed0e423d50f79ab95ad997668328.zip |
this is perl, not python ;p
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r-- | perl-install/network/network.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index 13aa34dcf..b17b102d9 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -543,7 +543,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} } values %$intf; - add2hosts("$etc/hosts", $netc->{HOSTNAME}, map { $_->{IPADDR} } values %$intf) if $netc->{HOSTNAME} and ! $netc->{DHCP}; + add2hosts("$etc/hosts", $netc->{HOSTNAME}, map { $_->{IPADDR} } values %$intf) if $netc->{HOSTNAME} && !$netc->{DHCP}; add2hosts("$etc/hosts", "localhost", "127.0.0.1"); any { $_->{BOOTPROTO} eq "dhcp" } values %$intf and $in->do_pkgs->install($netc->{dhcp_client} || 'dhcp-client'); |