]> git.pld-linux.org Git - packages/avahi.git/blame - avahi-autoipd-sbin_ip.patch
- rel 3
[packages/avahi.git] / avahi-autoipd-sbin_ip.patch
CommitLineData
845bceb6 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
3@@ -35,19 +35,19 @@
4
5 METRIC=$((1000 + `cat "/sys/class/net/$2/ifindex" 2>/dev/null || echo 0`))
6823ab8f
JK
6
7-if [ -x /bin/ip -o -x /sbin/ip ] ; then
8+if [ -x /sbin/ip ] ; then
9
10 # We have the Linux ip tool from the iproute package
11
12 case "$1" in
13 BIND)
845bceb6 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 ||:
6823ab8f
JK
18 ;;
19
20 CONFLICT|UNBIND|STOP)
845bceb6 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"
6823ab8f
JK
25 ;;
26
27 *)
This page took 0.031271 seconds and 4 git commands to generate.