ansible.fftdf.supernode/files/keepalive.exit.sh.j2

19 lines
528 B
Plaintext
Raw Normal View History

2016-02-27 23:13:18 +00:00
#!/bin/bash
2016-05-06 19:38:11 +00:00
#Check Tunneldigger Connections
2016-05-03 08:23:09 +00:00
if ! [ -d /opt/freifunk/tunneldigger_interfaces ]; then
2016-05-06 19:38:11 +00:00
mkdir /opt/freifunk/tunneldigger_interfaces
2016-05-03 08:23:09 +00:00
fi
2016-05-06 19:38:11 +00:00
#Remove old Interfaces
2016-05-03 08:23:09 +00:00
rm /opt/freifunk/tunneldigger_interfaces/*
2016-05-06 19:38:11 +00:00
#Create Interace files
2016-05-03 08:23:09 +00:00
for i in `/sbin/brctl show br-nodes | grep l2tp`;
do
touch /opt/freifunk/tunneldigger_interfaces/$i
done
2016-05-06 19:38:11 +00:00
#Remove wrong file
2016-05-03 08:23:09 +00:00
rm /opt/freifunk/tunneldigger_interfaces/no
rm /opt/freifunk/tunneldigger_interfaces/br-*
rm /opt/freifunk/tunneldigger_interfaces/8*
2016-03-12 16:02:49 +00:00
sleep 60
2016-03-05 13:34:33 +00:00
done