From 2aab95f110c7e9ffa2233644f23af9f0b3a3dd72 Mon Sep 17 00:00:00 2001 From: stebifan Date: Tue, 3 May 2016 10:23:09 +0200 Subject: [PATCH] Include td_stats.sh --- files/keepalive.exit.sh.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/files/keepalive.exit.sh.j2 b/files/keepalive.exit.sh.j2 index 0e47537..9192911 100644 --- a/files/keepalive.exit.sh.j2 +++ b/files/keepalive.exit.sh.j2 @@ -127,5 +127,21 @@ while [ true ] ; do echo 1 > /etc/supernode-status/"$service".status fi 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 done