[Pkg-utopia-commits] r1192 - packages/unstable/avahi/debian
Sjoerd Simons
sjoerd at alioth.debian.org
Wed Dec 27 23:23:25 CET 2006
Author: sjoerd
Date: 2006-12-27 23:23:25 +0100 (Wed, 27 Dec 2006)
New Revision: 1192
Modified:
packages/unstable/avahi/debian/avahi-daemon.ifupdown
Log:
Create the run dir for avahi-daemon if it doesn't exist
Modified: packages/unstable/avahi/debian/avahi-daemon.ifupdown
===================================================================
--- packages/unstable/avahi/debian/avahi-daemon.ifupdown 2006-12-27 21:43:13 UTC (rev 1191)
+++ packages/unstable/avahi/debian/avahi-daemon.ifupdown 2006-12-27 22:23:25 UTC (rev 1192)
@@ -2,20 +2,20 @@
#
# If we have an unicast .local domain, we immediately disable avahi to avoid
# conflicts with the multicast IP4LL .local domain
-DISABLE_TAG="/var/run/avahi-daemon/disabled-for-unicast-local"
+DISABLE_TAG_DIR="/var/run/avahi-daemon/"
+DISABLE_TAG="$DISABLE_TAG_DIR/disabled-for-unicast-local"
OUT=`LC_ALL=C host -t soa local. 2>&1`
if [ $? -eq 0 ] && echo "$OUT" | egrep -vq 'has no|not found'; then
if [ -x /etc/init.d/avahi-daemon ]; then
/etc/init.d/avahi-daemon stop || true
fi
- if [ -d /var/run/avahi-daemon ]; then
- touch $DISABLE_TAG
- fi
+ mkdir -p ${DISABLE_TAG_DIR}
+ touch ${DISABLE_TAG}
exit 0
else
# no unicast .local conflict, so remove the tag and start avahi again
- if [ -e $DISABLE_TAG ]; then
- rm -f $DISABLE_TAG
+ if [ -e ${DISABLE_TAG} ]; then
+ rm -f ${DISABLE_TAG}
if [ -x /etc/init.d/avahi-daemon ]; then
/etc/init.d/avahi-daemon start || true
fi
More information about the Pkg-utopia-commits
mailing list