Disable VPN if not in use

The simplest and fasted way to
Fixes #72

Signed-off-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
Christian Dresel 2018-02-13 13:27:37 +01:00 committed by Tim Niemeyer
parent 55f6182a75
commit 9a470994aa
2 changed files with 9 additions and 0 deletions

View File

@ -279,6 +279,8 @@ if [ -s "$hoodfile" ]; then
if hasInternet ; then
sh /usr/sbin/vpn-select
else
sh /usr/sbin/vpn-stop
fi
# now we load the prefix from the hoodfile and set this to br-mesh

View File

@ -0,0 +1,7 @@
#!/bin/sh
>/etc/config/tunneldigger
rm /tmp/fastd_fff_peers/*
/etc/init.d/fastd stop
/etc/init.d/tunneldigger stop