Message ID | 20171111080641.13279-1-fff@chrisi01.de |
---|---|
State | Deferred |
Headers | show |
diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index ba34329..dd92a89 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -237,6 +237,12 @@ if [ -s "$hoodfile" ]; then if hasInternet ; then sh /usr/sbin/vpn-select + else + # remove old config + >/etc/config/tunneldigger + rm /tmp/fastd_fff_peers/* + /etc/init.d/fastd stop + /etc/init.d/tunneldigger stop fi # now we load the prefix from the hoodfile and set this to br-mesh
Hallo Christian, ich wuerde die Tunnel an lassen, solange der Router am WAN -Port angestoepselt ist. Falls die Internetleitung mal kurz weg war, werden die Tunnel wieder aufgebaut. Vom tunneldigger weiss ich das sicher, und ich denke, der fastd kann das auch. Robert Am 11.11.2017 um 09:06 schrieb Christian Dresel: > If we have no Internet, we don't need the config and we can stop > fastd and tunneldigger. When we get Internet back, the vpn-select > packages reload the config and start tunneldigger and fastd again > > Signed-off-by: Christian Dresel <fff@chrisi01.de> > --- > src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > index ba34329..dd92a89 100755 > --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood > @@ -237,6 +237,12 @@ if [ -s "$hoodfile" ]; then > > if hasInternet ; then > sh /usr/sbin/vpn-select > + else > + # remove old config > + >/etc/config/tunneldigger > + rm /tmp/fastd_fff_peers/* > + /etc/init.d/fastd stop > + /etc/init.d/tunneldigger stop > fi > > # now we load the prefix from the hoodfile and set this to br-mesh
If we have no Internet, we don't need the config and we can stop fastd and tunneldigger. When we get Internet back, the vpn-select packages reload the config and start tunneldigger and fastd again Signed-off-by: Christian Dresel <fff@chrisi01.de> --- src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 6 ++++++ 1 file changed, 6 insertions(+)