[Pkg-utopia-commits] r1206 - packages/unstable/avahi/debian

Sjoerd Simons sjoerd at alioth.debian.org
Sun Jan 7 13:49:13 CET 2007


Author: sjoerd
Date: 2007-01-07 13:49:12 +0100 (Sun, 07 Jan 2007)
New Revision: 1206

Modified:
   packages/unstable/avahi/debian/avahi-daemon.ifupdown
   packages/unstable/avahi/debian/avahi-daemon.resolvconf
Log:
Little improvements to the hook scripts based on Lennart Poeterings comments

Modified: packages/unstable/avahi/debian/avahi-daemon.ifupdown
===================================================================
--- packages/unstable/avahi/debian/avahi-daemon.ifupdown	2007-01-04 16:01:06 UTC (rev 1205)
+++ packages/unstable/avahi/debian/avahi-daemon.ifupdown	2007-01-07 12:49:12 UTC (rev 1206)
@@ -24,9 +24,11 @@
 EOF
         fi
     fi
-    mkdir -p ${DISABLE_TAG_DIR}
+    if [ ! -d ${DISABLE_TAG_DIR} ] ; then 
+      mkdir -m 0755 -p ${DISABLE_TAG_DIR}
+      chown avahi:avahi ${DISABLE_TAG_DIR}
+    fi 
     touch ${DISABLE_TAG}
-    exit 0
 else
     # no unicast .local conflict, so remove the tag and start avahi again
     if [ -e ${DISABLE_TAG} ]; then
@@ -36,3 +38,5 @@
         fi
     fi
 fi
+
+exit 0

Modified: packages/unstable/avahi/debian/avahi-daemon.resolvconf
===================================================================
--- packages/unstable/avahi/debian/avahi-daemon.resolvconf	2007-01-04 16:01:06 UTC (rev 1205)
+++ packages/unstable/avahi/debian/avahi-daemon.resolvconf	2007-01-07 12:49:12 UTC (rev 1206)
@@ -4,6 +4,7 @@
 # conflicts with the multicast IP4LL .local domain
 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
@@ -20,9 +21,11 @@
 EOF
         fi
     fi
-    mkdir -p ${DISABLE_TAG_DIR}
+    if [ ! -d ${DISABLE_TAG_DIR} ] ; then 
+      mkdir -m 0755 -p ${DISABLE_TAG_DIR}
+      chown avahi:avahi ${DISABLE_TAG_DIR}
+    fi 
     touch ${DISABLE_TAG}
-    exit 0
 else
     # no unicast .local conflict, so remove the tag and start avahi again
     if [ -e ${DISABLE_TAG} ]; then
@@ -32,3 +35,5 @@
         fi
     fi
 fi
+
+exit 0




More information about the Pkg-utopia-commits mailing list