diff --git a/files/collectd_td_stat.sh b/files/collectd_td_stat.sh index a8de947..b6ef201 100644 --- a/files/collectd_td_stat.sh +++ b/files/collectd_td_stat.sh @@ -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*