be3d50ceb8
- alfred messages - Tunneldigger MAC blocker (experimental) - DNS (bind9 for secondary fftdf zone on all supernodes) - DHCP change, new DNS server - Major fix for GRE_backbone.sh (same MAC address on all bat0)
28 lines
511 B
Django/Jinja
28 lines
511 B
Django/Jinja
#!/bin/bash
|
|
INTERFACE="$3"
|
|
#MAC="$8"
|
|
#BLACKLISTFILE=/opt/freifunk/blockliste.txt
|
|
|
|
|
|
#if [ -f /opt/freifunk/blockliste.txt ]
|
|
|
|
#if [ -f $BLACKLISTFILE ]
|
|
# then
|
|
# BLOCKLISTE=$(cat /opt/freifunk/blockliste.txt)
|
|
# else
|
|
# touch=$BLOCKLISTE
|
|
#fi
|
|
|
|
#for i in $BLOCKLISTE;
|
|
#do
|
|
# if [[ $i == $MAC ]]; then
|
|
# exit 1
|
|
# fi
|
|
#done
|
|
|
|
#ip link set address {{ sn_mesh_MAC }} dev $INTERFACE
|
|
ifconfig $INTERFACE hw ether {{ sn_mesh_MAC }}
|
|
ip link set dev $INTERFACE up mtu 1312
|
|
/usr/sbin/batctl if add $INTERFACE
|
|
|