aboutsummaryrefslogtreecommitdiffstats
path: root/packages/zeroconf/zeroconf-0.6.1/debian-zeroconf.patch
blob: 6c4008bc56aab9fd4288b88afd8f830309f6cb3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- zeroconf-0.6.1.orig/debian-zeroconf
+++ zeroconf-0.6.1/debian-zeroconf
@@ -19,6 +19,8 @@
 [ -f /etc/default/zeroconf ] &&
     . /etc/default/zeroconf

+[ -n "$DISABLE" ] && exit 0
+
 for BLACK in $IFBLACKLIST; do
     case $IFACE in
        $BLACK)
@@ -31,7 +33,6 @@
 if [ -n "$FALLBACK" ]; then
     /bin/ip addr show $IFACE scope global | grep -q "inet"
     IP=$?
-    [ $IP -eq 0 ] && exit 0
     if [ $IP -eq 0 ]; then
         /bin/ip route add 169.254.0.0/16 dev $IFACE
         exit 0
@@ -39,6 +40,6 @@
 fi

 # otherwise, we are good to go
-/usr/local/sbin/zeroconf -i $IFACE
+/usr/sbin/zeroconf -i $IFACE

 exit 0