diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-03-01 11:03:05 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-03-01 11:03:05 +0000 |
commit | ce842b3e55a032888714e681c9bc73d33ab68129 (patch) | |
tree | 1fd5d1f4b56e546af1bb9fd7a9e8fb2348f145f5 /live/One | |
parent | 82cbe7af79185bd73203730f5311e961e3a33325 (diff) | |
download | drakx-backup-do-not-use-ce842b3e55a032888714e681c9bc73d33ab68129.tar drakx-backup-do-not-use-ce842b3e55a032888714e681c9bc73d33ab68129.tar.gz drakx-backup-do-not-use-ce842b3e55a032888714e681c9bc73d33ab68129.tar.bz2 drakx-backup-do-not-use-ce842b3e55a032888714e681c9bc73d33ab68129.tar.xz drakx-backup-do-not-use-ce842b3e55a032888714e681c9bc73d33ab68129.zip |
don't start/stop the tmdns service during install
Diffstat (limited to 'live/One')
-rw-r--r-- | live/One/2006.0/config/patch-2006-live.pl | 21 |
1 files changed, 21 insertions, 0 deletions
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); +}; |