summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-17 07:50:15 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-17 07:50:15 +0000
commitad5e218a59c23ff444108d0e24643d590710b298 (patch)
treeeb7fdaa5a6fa12278122bc8358d494d2cb703a4d /perl-install
parent661494b13955d63977c580922380301c5e18d587 (diff)
downloaddrakx-ad5e218a59c23ff444108d0e24643d590710b298.tar
drakx-ad5e218a59c23ff444108d0e24643d590710b298.tar.gz
drakx-ad5e218a59c23ff444108d0e24643d590710b298.tar.bz2
drakx-ad5e218a59c23ff444108d0e24643d590710b298.tar.xz
drakx-ad5e218a59c23ff444108d0e24643d590710b298.zip
(configureNetwork2) use services do disable zeroconf, do not disable
if it doesn't exist (to avoid warnings in console)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/network.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index c3faf7ae9..2962a8a83 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -446,7 +446,11 @@ sub configureNetwork2 {
$in->do_pkgs->ensure_binary_is_installed('tmdns', 'tmdns', 'auto') if !$in->do_pkgs->is_installed('bind');
$in->do_pkgs->ensure_binary_is_installed('zcip', 'zcip', 'auto');
write_zeroconf("$etc/tmdns.conf", $netc->{ZEROCONF_HOSTNAME});
- } else { run_program::rooted($::prefix, "chkconfig", "--del", $_) foreach qw(tmdns zcip) } # disable zeroconf
+ } else {
+ #- disable zeroconf
+ require services;
+ -f "/etc/rc.d/init.d/$_" and services::do_not_start_service_on_boot($_) foreach qw(tmdns zcip)
+ }
any { $_->{BOOTPROTO} =~ /^(pump|bootp)$/ } values %$intf and $in->do_pkgs->install('pump');
}
}