From: Peter Korsgaard Date: Fri, 19 Jun 2009 13:40:04 +0000 (+0200) Subject: autoipd: also use :avahi when using ifconfig in linux action script X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=3ee310972c0effede5086085156024bc072d4bb8;p=catta autoipd: also use :avahi when using ifconfig in linux action script avahi-autoipd.action.linux creates :3 aliases when using ifconfig instead of the :avahi aliases used when ip is used. Fix it to always use :avahi for consistency. Signed-off-by: Peter Korsgaard --- diff --git a/avahi-autoipd/avahi-autoipd.action.linux b/avahi-autoipd/avahi-autoipd.action.linux index 27f00bb..9b14600 100755 --- a/avahi-autoipd/avahi-autoipd.action.linux +++ b/avahi-autoipd/avahi-autoipd.action.linux @@ -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 ;; *)