Update collectd_td_stat.sh
This commit is contained in:
parent
9349187da7
commit
49f58f357a
@ -6,9 +6,11 @@ fi
|
|||||||
#Remove old Interfaces
|
#Remove old Interfaces
|
||||||
rm /opt/freifunk/tunneldigger_interfaces/*
|
rm /opt/freifunk/tunneldigger_interfaces/*
|
||||||
#Create Interace files
|
#Create Interace files
|
||||||
for i in `/usr/local/sbin/batctl if | grep l2tp1`;
|
for i in `/sbin/brctl show vpn-td | grep l2tp1`;
|
||||||
do
|
do
|
||||||
touch /opt/freifunk/tunneldigger_interfaces/$i
|
touch /opt/freifunk/tunneldigger_interfaces/$i
|
||||||
done
|
done
|
||||||
#Remove Active file
|
#Remove wrong file
|
||||||
rm /opt/freifunk/tunneldigger_interfaces/active
|
rm /opt/freifunk/tunneldigger_interfaces/no
|
||||||
|
rm /opt/freifunk/tunneldigger_interfaces/br-*
|
||||||
|
rm /opt/freifunk/tunneldigger_interfaces/8*
|
||||||
|
Loading…
Reference in New Issue
Block a user