1 --- avahi-0.6.26/avahi-autoipd/avahi-autoipd.action.linux~ 2010-06-25 20:50:59.000000000 +0200
2 +++ avahi-0.6.26/avahi-autoipd/avahi-autoipd.action.linux 2010-07-07 11:18:35.704019843 +0200
5 METRIC=$((1000 + `cat "/sys/class/net/$2/ifindex" 2>/dev/null || echo 0`))
7 -if [ -x /bin/ip -o -x /sbin/ip ] ; then
8 +if [ -x /sbin/ip ] ; then
10 # We have the Linux ip tool from the iproute package
14 - ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2"
15 - ip route add default dev "$2" metric "$METRIC" scope link ||:
16 + /sbin/ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2"
17 + /sbin/ip route add default dev "$2" metric "$METRIC" scope link ||:
21 - ip route del default dev "$2" metric "$METRIC" scope link ||:
22 - ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2"
23 + /sbin/ip route del default dev "$2" metric "$METRIC" scope link ||:
24 + /sbin/ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2"