2015-11-28 14:25:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
INTERFACE="$3"
|
2015-11-29 21:34:32 +00:00
|
|
|
#MAC="$8"
|
|
|
|
#BLACKLISTFILE=/opt/freifunk/blockliste.txt
|
2015-12-13 12:33:33 +00:00
|
|
|
batctl=/usr/local/sbin/batctl
|
2015-11-28 14:25:29 +00:00
|
|
|
|
2015-11-29 21:34:32 +00:00
|
|
|
#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 }}
|
2015-12-13 12:33:33 +00:00
|
|
|
/bin/ip link set dev $INTERFACE up mtu 1312
|
2015-12-03 21:01:23 +00:00
|
|
|
/sbin/sysctl net.ipv4.conf.$INTERFACE.rp_filter=0
|
2015-12-13 12:33:33 +00:00
|
|
|
$batctl if add $INTERFACE
|
2015-11-29 21:34:32 +00:00
|
|
|
|