Update collectd_td_stat.sh

This commit is contained in:
stebifan 2016-01-24 22:43:33 +01:00
parent 9349187da7
commit 49f58f357a

View File

@ -6,9 +6,11 @@ fi
#Remove old Interfaces
rm /opt/freifunk/tunneldigger_interfaces/*
#Create Interace files
for i in `/usr/local/sbin/batctl if | grep l2tp1`;
for i in `/sbin/brctl show vpn-td | grep l2tp1`;
do
touch /opt/freifunk/tunneldigger_interfaces/$i
done
#Remove Active file
rm /opt/freifunk/tunneldigger_interfaces/active
#Remove wrong file
rm /opt/freifunk/tunneldigger_interfaces/no
rm /opt/freifunk/tunneldigger_interfaces/br-*
rm /opt/freifunk/tunneldigger_interfaces/8*