From ce842b3e55a032888714e681c9bc73d33ab68129 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 1 Mar 2006 11:03:05 +0000 Subject: don't start/stop the tmdns service during install --- live/One/2006.0/config/patch-2006-live.pl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/live/One/2006.0/config/patch-2006-live.pl b/live/One/2006.0/config/patch-2006-live.pl index c0da6280b..df55f4792 100644 --- a/live/One/2006.0/config/patch-2006-live.pl +++ b/live/One/2006.0/config/patch-2006-live.pl @@ -170,3 +170,24 @@ undef *doPartitionDisksAfter; !any { $_->{mntpoint} eq "/mnt/nfs" } @{$o->{all_hds}{nfss}} and push @{$o->{all_hds}{nfss}}, { fs_type => 'nfs', mntpoint => "/mnt/nfs", device => $1, options => "noauto,ro,nosuid,soft,rsize=8192,wsize=8192" }; }; + +use network::network; +package network::network; + +undef *write_zeroconf; +*write_zeroconf = sub { + my ($net, $in) = @_; + my $zhostname = $net->{zeroconf}{hostname}; + my $file = $::prefix . $tmdns_file; + + if ($zhostname) { + $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 blank hostname even if disabled so that drakconnect does not assume zeroconf is enabled + eval { substInFile { s/^\s*(hostname)\s*=.*/$1 = $zhostname/ } $file } if $zhostname || -f $file; + + require services; + services::set_status('tmdns', $net->{zeroconf}{hostname}, $::isInstall); +}; -- cgit v1.2.1