[PATCH] autoipd: also use <dev>:avahi when using ifconfig in linux action script

View: New views
2 Messages — Rating Filter:   Alert me  

[PATCH] autoipd: also use <dev>:avahi when using ifconfig in linux action script

by Peter Korsgaard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
---
 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

_______________________________________________
avahi mailing list
avahi@...
http://lists.freedesktop.org/mailman/listinfo/avahi

Re: [PATCH] autoipd: also use <dev>:avahi when using ifconfig in linux action script

by Lennart Poettering-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 19.06.09 15:40, Peter Korsgaard (jacmet@...) wrote:

> 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.

Thanks!

Applied.

Lennart

--
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
_______________________________________________
avahi mailing list
avahi@...
http://lists.freedesktop.org/mailman/listinfo/avahi