]> git.meshlink.io Git - catta/blobdiff - initscript/debian/avahi-daemon.in
* add support for /etc/localtime in avahi's chroot for debian
[catta] / initscript / debian / avahi-daemon.in
index ddaeba44b6d63d4f02bffb7211b8e483fde249c6..feecc847a8b70f903b41c6e63b678949103f6696 100755 (executable)
@@ -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
 }