Try a different interface

This commit is contained in:
Bob Mottram 2015-08-09 10:30:08 +01:00
parent 49ecb5343f
commit 51f1012b40
1 changed files with 4 additions and 3 deletions

View File

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