avahi-dnsconfd
avahi-daemon: avahi-daemon.in
- sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
+ sed \
+ -e 's,@sbindir\@,$(sbindir),g' \
+ -e 's,@sysconfdir\@,$(sysconfdir),g' \
+ $< > $@
chmod +x $@
avahi-dnsconfd: avahi-dnsconfd.in
- sed -e 's,@sbindir\@,$(sbindir),g' $< > $@
+ sed \
+ -e 's,@sbindir\@,$(sbindir),g' \
+ -e 's,@sysconfdir\@,$(sysconfdir),g' \
+ $< > $@
chmod +x $@
# 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
}
# 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
}