From 51f1012b40e9d07c9a2da064bb7d0d13dfb48716 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 9 Aug 2015 10:30:08 +0100 Subject: [PATCH] Try a different interface --- src/freedombone-client | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/freedombone-client b/src/freedombone-client index b7ddf033..6fea7630 100755 --- a/src/freedombone-client +++ b/src/freedombone-client @@ -226,8 +226,9 @@ function mesh_batman { echo ' modprobe batman-adv' >> $batman_script echo ' batctl if add $IFACE' >> $batman_script echo ' ifconfig $IFACE up' >> $batman_script - echo ' avahi-autoipd -D bat0' >> $batman_script - echo ' ifconfig bat0 up promisc netmask 255.255.255.0 broadcast 192.168.13.255' >> $babel_script + echo ' avahi-autoipd -D $IFACE' >> $batman_script + echo ' ifconfig $IFACE:avahi netmask 255.255.255.0' >> $babel_script + echo ' ifconfig bat0 up promisc' >> $babel_script echo '' >> $batman_script echo ' #Use persistent HWAddr' >> $batman_script echo ' ether_new=$(ifconfig eth0 | grep HWaddr | sed -e "s/.*HWaddr //")' >> $batman_script @@ -271,7 +272,7 @@ function mesh_batman { echo ' ifconfig $EIFACE down -promisc' >> $batman_script echo ' fi' >> $batman_script echo '' >> $batman_script - echo ' avahi-autoipd -k bat0' >> $batman_script + echo ' avahi-autoipd -k $IFACE' >> $batman_script echo ' ifconfig bat0 down -promisc' >> $batman_script echo '' >> $batman_script echo ' batctl if del $IFACE' >> $batman_script