]> git.meshlink.io Git - catta/commitdiff
autoipd: also use <dev>:avahi when using ifconfig in linux action script
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 19 Jun 2009 13:40:04 +0000 (15:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 14 Nov 2009 01:42:44 +0000 (02:42 +0100)
avahi-autoipd.action.linux creates <dev>:3 aliases when using ifconfig
instead of the <dev>:avahi aliases used when ip is used. Fix it to always
use <dev>:avahi for consistency.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
avahi-autoipd/avahi-autoipd.action.linux

index 27f00bb08c3102ebbfb549678c76065d07881a3e..9b1460025e4ec9d06d433e2f461961d5c6a8f6f1 100755 (executable)
@@ -55,11 +55,11 @@ elif [ -x /bin/ifconfig -o -x /sbin/ifconfig ] ; then
 
     case "$1" in
         BIND)
-            ifconfig "$2:3" inet "$3" netmask 255.255.0.0 broadcast 169.254.255.255 up
+            ifconfig "$2:avahi" inet "$3" netmask 255.255.0.0 broadcast 169.254.255.255 up
             ;;
 
         CONFLICT|STOP|UNBIND)
-            ifconfig "$2:3" down
+            ifconfig "$2:avahi" down
             ;;
 
         *)