summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2003-02-21 14:28:11 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2003-02-21 14:28:11 +0000
commitd0a3fd5e053c184783e97d262e793979bab9c464 (patch)
treed4695ef55d0bc89bd8b27679abae0c38b313d21a /perl-install
parent688f33610db3f2f997449b58d383245c2a1d61b0 (diff)
downloaddrakx-d0a3fd5e053c184783e97d262e793979bab9c464.tar
drakx-d0a3fd5e053c184783e97d262e793979bab9c464.tar.gz
drakx-d0a3fd5e053c184783e97d262e793979bab9c464.tar.bz2
drakx-d0a3fd5e053c184783e97d262e793979bab9c464.tar.xz
drakx-d0a3fd5e053c184783e97d262e793979bab9c464.zip
no need to use regexp
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 3f6d67bd0..1df5e18f1 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -531,7 +531,7 @@ sub configureNetwork2 {
add2hosts("$etc/hosts", $netc->{HOSTNAME}, map { $_->{IPADDR} } values %$intf) if $netc->{HOSTNAME};
add2hosts("$etc/hosts", "localhost", "127.0.0.1");
- any { $_->{BOOTPROTO} =~ /^dhcp$/ } values %$intf and $in->do_pkgs->install($netc->{dhcp_client} || 'dhcp-client');
+ any { $_->{BOOTPROTO} eq "dhcp" } values %$intf and $in->do_pkgs->install($netc->{dhcp_client} || 'dhcp-client');
$in->do_pkgs->install(qw(zcip tmdns));
$netc->{ZEROCONF_HOSTNAME} and write_zeroconf("$etc/tmdns.conf", $netc->{ZEROCONF_HOSTNAME});
any { $_->{BOOTPROTO} =~ /^(pump|bootp)$/ } values %$intf and $in->do_pkgs->install('pump');