From 3ee310972c0effede5086085156024bc072d4bb8 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Fri, 19 Jun 2009 15:40:04 +0200 Subject: [PATCH] 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 --- avahi-autoipd/avahi-autoipd.action.linux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ;; *) -- 2.39.5