forked from freifunk-franken/firmware
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:
parent
55f6182a75
commit
9a470994aa
|
@ -279,6 +279,8 @@ if [ -s "$hoodfile" ]; then
|
||||||
|
|
||||||
if hasInternet ; then
|
if hasInternet ; then
|
||||||
sh /usr/sbin/vpn-select
|
sh /usr/sbin/vpn-select
|
||||||
|
else
|
||||||
|
sh /usr/sbin/vpn-stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# now we load the prefix from the hoodfile and set this to br-mesh
|
# now we load the prefix from the hoodfile and set this to br-mesh
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
>/etc/config/tunneldigger
|
||||||
|
rm /tmp/fastd_fff_peers/*
|
||||||
|
/etc/init.d/fastd stop
|
||||||
|
/etc/init.d/tunneldigger stop
|
||||||
|
|
Loading…
Reference in New Issue