]> git.pld-linux.org Git - packages/avahi.git/blob - avahi-autoipd-sbin_ip.patch
- provide dhclient hooks in the autoipd package
[packages/avahi.git] / avahi-autoipd-sbin_ip.patch
1 --- avahi-0.6.25/avahi-autoipd/avahi-autoipd.action.linux.orig  2010-05-02 15:05:38.000000000 +0200
2 +++ avahi-0.6.25/avahi-autoipd/avahi-autoipd.action.linux       2010-05-02 15:14:46.000000000 +0200
3 @@ -30,17 +30,17 @@
4  #   $2 interface name
5  #   $3 IP adddress
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)
14 -            ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" 
15 +            /sbin/ip addr add "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" 
16              ;;
17  
18          CONFLICT|UNBIND|STOP)
19 -            ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" 
20 +            /sbin/ip addr del "$3"/16 brd 169.254.255.255 label "$2:avahi" scope link dev "$2" 
21              ;;
22  
23          *)
This page took 0.027577 seconds and 4 git commands to generate.