From 5bf66ba8d479bbe613da1b9557b8aad2c448b536 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Fri, 3 Feb 2006 22:04:13 +0000 Subject: * add support for /etc/localtime in avahi's chroot for debian git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1128 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- initscript/debian/avahi-dnsconfd.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'initscript/debian/avahi-dnsconfd.in') diff --git a/initscript/debian/avahi-dnsconfd.in b/initscript/debian/avahi-dnsconfd.in index 0720a9e..649d72f 100755 --- a/initscript/debian/avahi-dnsconfd.in +++ b/initscript/debian/avahi-dnsconfd.in @@ -91,6 +91,13 @@ test -x $DAEMON || exit 0 # Function that starts the daemon/service. # d_start() { + if [ -s /etc/localtime ]; then + if [ ! -d /etc/avahi/etc ]; then + mkdir -p @sysconfdir@/avahi/etc >/dev/null 2>&1 + fi + cp -fp /etc/localtime @sysconfdir@/avahi/etc >/dev/null 2>&1 + fi; + $DAEMON -D } -- cgit