From 49f58f357a905b6e37699081eb63d4e5dbf04e81 Mon Sep 17 00:00:00 2001 From: stebifan Date: Sun, 24 Jan 2016 22:43:33 +0100 Subject: [PATCH] Update collectd_td_stat.sh --- files/collectd_td_stat.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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*