Create collectd_td_stat.sh
This commit is contained in:
parent
c0732dd3c8
commit
c2f8c109f5
14
files/collectd_td_stat.sh
Normal file
14
files/collectd_td_stat.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
for i in `/usr/local/sbin/batctl if | grep l2tp1`;
|
||||
do
|
||||
touch /opt/freifunk/tunneldigger_interfaces/$i
|
||||
done
|
||||
#Remove Active file
|
||||
rm /opt/freifunk/tunneldigger_interfaces/active
|
Loading…
Reference in New Issue
Block a user