From e0c27a2411b7c5f03b62fa44e9b890e2ebffcb3d Mon Sep 17 00:00:00 2001 From: stebifan Date: Sun, 24 Jan 2016 22:37:34 +0100 Subject: [PATCH] Added Bridge Config --- files/bataddif.sh.j2 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/files/bataddif.sh.j2 b/files/bataddif.sh.j2 index e0fc221..7bea415 100644 --- a/files/bataddif.sh.j2 +++ b/files/bataddif.sh.j2 @@ -3,7 +3,7 @@ INTERFACE="$3" #MAC="$8" #BLACKLISTFILE=/opt/freifunk/blockliste.txt batctl=/usr/local/sbin/batctl - +brctl=/sbin/brctl #if [ -f /opt/freifunk/blockliste.txt ] #if [ -f $BLACKLISTFILE ] @@ -24,7 +24,6 @@ batctl=/usr/local/sbin/batctl #ifconfig $INTERFACE hw ether {{ sn_mesh_MAC }} /bin/ip link set dev $INTERFACE up mtu 1312 #/sbin/sysctl net.ipv4.conf.$INTERFACE.rp_filter=0 - -$batctl if add $INTERFACE - -echo "enabled" > /sys/devices/virtual/net/$INTERFACE/batman_adv/no_rebroadcast +#$batctl if add $INTERFACE +#echo "enabled" > /sys/devices/virtual/net/$INTERFACE/batman_adv/no_rebroadcast +$brctl addif br-nodes