ansible.fftdf.supernode/files/collectd_td_stat.sh

17 lines
495 B
Bash
Raw Normal View History

2016-01-09 11:33:59 +00:00
#!/bin/bash
#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
2016-01-24 22:43:56 +00:00
for i in `/sbin/brctl show br-nodes | grep l2tp1`;
2016-01-09 11:33:59 +00:00
do
touch /opt/freifunk/tunneldigger_interfaces/$i
done
2016-01-24 21:43:33 +00:00
#Remove wrong file
rm /opt/freifunk/tunneldigger_interfaces/no
rm /opt/freifunk/tunneldigger_interfaces/br-*
rm /opt/freifunk/tunneldigger_interfaces/8*