[avahi] [PATCH] autoipd: also use <dev>:avahi when using ifconfig in linux action script
Peter Korsgaard
jacmet at sunsite.dk
Fri Jun 19 06:40:04 PDT 2009
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 at sunsite.dk>
---
avahi-autoipd/avahi-autoipd.action.linux | 4 ++--
1 files 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
;;
*)
--
1.6.2
More information about the avahi
mailing list