]>
Commit | Line | Data |
---|---|---|
26897015 AM |
1 | --- avahi-0.7/avahi-autoipd/avahi-autoipd.action.linux~ 2017-07-10 12:12:38.000000000 +0200 |
2 | +++ avahi-0.7/avahi-autoipd/avahi-autoipd.action.linux 2017-10-26 09:10:43.453751871 +0200 | |
3 | @@ -35,20 +35,20 @@ PATH="$PATH:/usr/bin:/usr/sbin:/bin:/sbi | |
845bceb6 | 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) | |
26897015 | 14 | - ip addr flush dev "$2" label "$2:avahi" |
845bceb6 | 15 | - ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" |
16 | - ip route add default dev "$2" metric "$METRIC" scope link ||: | |
26897015 | 17 | + /sbin/ip addr flush dev "$2" label "$2:avahi" |
845bceb6 | 18 | + /sbin/ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" |
19 | + /sbin/ip route add default dev "$2" metric "$METRIC" scope link ||: | |
6823ab8f JK |
20 | ;; |
21 | ||
22 | CONFLICT|UNBIND|STOP) | |
845bceb6 | 23 | - ip route del default dev "$2" metric "$METRIC" scope link ||: |
24 | - ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" | |
25 | + /sbin/ip route del default dev "$2" metric "$METRIC" scope link ||: | |
26 | + /sbin/ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" | |
6823ab8f JK |
27 | ;; |
28 | ||
29 | *) |