summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/zeroconf/zeroconf/debian-zeroconf
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-22 15:50:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-26 14:12:55 +0100
commit511f7f9d0422fe1a896361b53179c9f642c1fc0b (patch)
treefd55347a3cfd89a52179f1bb702d276fe2337d94 /meta/recipes-connectivity/zeroconf/zeroconf/debian-zeroconf
parent3f14eb3674d44b61fe19016902d41cae57be8e6c (diff)
downloadpoky-511f7f9d0422fe1a896361b53179c9f642c1fc0b.tar.gz
zeroconf: remove
We already have avahi in OE-Core and some cursory research suggests that avahi is preferred over this package, which has apparently not seen a release since 2006. Nothing in OE-Core actually refers to it, so let's just remove it. CC: Cristian Iorga <cristian.iorga@intel.com> (From OE-Core rev: 88b4ec0b8c7c75b8570fc201c705937b459bb43e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/zeroconf/zeroconf/debian-zeroconf')
-rw-r--r--meta/recipes-connectivity/zeroconf/zeroconf/debian-zeroconf51
1 files changed, 0 insertions, 51 deletions
diff --git a/meta/recipes-connectivity/zeroconf/zeroconf/debian-zeroconf b/meta/recipes-connectivity/zeroconf/zeroconf/debian-zeroconf
deleted file mode 100644
index c3705d2788..0000000000
--- a/meta/recipes-connectivity/zeroconf/zeroconf/debian-zeroconf
+++ /dev/null
@@ -1,51 +0,0 @@
1#!/bin/sh
2
3if [ ! -x /usr/sbin/zeroconf ]; then
4 exit 0
5fi
6
7# IPv4 link-local addresses (zeroconf) are
8# only applicable on the 'inet' address family
9[ "X$ADDRFAM" != "Xinet" ] && exit 0
10
11# However there are some methods where it doesn't
12# make any sense to configure an IPv4LL address
13
14# not on loopback
15[ "X$METHOD" = "Xloopback" ] && exit 0
16
17# not on ppp or wvdial either
18[ "X$METHOD" = "Xppp" ] && exit 0
19[ "X$METHOD" = "Xwvdial" ] && exit 0
20
21# The administrator may have blacklisted interfaces
22# or only want zeroconf in a fallback situation
23[ -f /etc/default/zeroconf ] &&
24 . /etc/default/zeroconf
25
26[ -n "$DISABLE" ] && exit 0
27
28for BLACK in $IFBLACKLIST; do
29 case $IFACE in
30 $BLACK)
31 exit 0
32 ;;
33 esac
34done
35
36# should we only allocate an address if we do not already have one?
37if [ -n "$FALLBACK" ]; then
38 /bin/ip addr show $IFACE scope global | grep -q "inet"
39 IP=$?
40 if [ $IP -eq 0 ]; then
41 /bin/ip route add 169.254.0.0/16 dev $IFACE
42 exit 0
43 fi
44fi
45
46# otherwise, run if we aren't already going
47if [ ! -r /var/run/zeroconf.$IFACE.pid ]; then
48 /usr/sbin/zeroconf -i $IFACE
49fi
50
51exit 0