ansible.fftdf.supernode/files/bataddif.sh.j2

19 lines
503 B
Plaintext
Raw Normal View History

2015-11-28 14:25:29 +00:00
#!/bin/bash
INTERFACE="$3"
2016-01-26 23:48:21 +00:00
MAC="$8"
2016-01-24 21:37:34 +00:00
brctl=/sbin/brctl
2016-03-05 18:46:04 +00:00
BLOCKLISTE=$(/bin/cat /opt/freifunk/tunneldigger-blacklist.txt)
2016-03-05 17:51:02 +00:00
wget -q -O /opt/freifunk/tunneldigger-blacklist.txt https://raw.githubusercontent.com/Freifunk-Troisdorf/tunneldigger-blockliste/master/macs.txt
2016-03-05 18:46:04 +00:00
/bin/ip link set dev $INTERFACE up mtu 1312
2016-03-05 17:51:02 +00:00
for i in $BLOCKLISTE;
do
if [[ $i == $MAC ]]; then
exit 1
fi
done
2016-01-24 21:37:34 +00:00
#echo "enabled" > /sys/devices/virtual/net/$INTERFACE/batman_adv/no_rebroadcast
2016-01-24 21:39:36 +00:00
$brctl addif br-nodes $INTERFACE