Include td_stats.sh

This commit is contained in:
stebifan 2016-05-03 10:23:09 +02:00
parent bea5db5c63
commit 2aab95f110

View File

@ -127,5 +127,21 @@ while [ true ] ; do
echo 1 > /etc/supernode-status/"$service".status echo 1 > /etc/supernode-status/"$service".status
fi fi
done done
#Check Tunneldigger Connections
#Check if foldes exists
if ! [ -d /opt/freifunk/tunneldigger_interfaces ]; then
mkdir /opt/freifunk/tunneldigger_interfaces
fi
#Remove old Interfaces
rm /opt/freifunk/tunneldigger_interfaces/*
#Create Interace files
for i in `/sbin/brctl show br-nodes | grep l2tp`;
do
touch /opt/freifunk/tunneldigger_interfaces/$i
done
#Remove wrong file
rm /opt/freifunk/tunneldigger_interfaces/no
rm /opt/freifunk/tunneldigger_interfaces/br-*
rm /opt/freifunk/tunneldigger_interfaces/8*
sleep 60 sleep 60
done done