gluon-mesh-vpn-core: don't consider tunneldigger when fastd is installed

None of our scripts can handle fastd and tunneldigger running at the same
time. When both are installed, ignore tunneldigger.

(cherry picked from commit f6df3b0541)
This commit is contained in:
Matthias Schiffer 2019-06-09 17:36:22 +02:00
parent be967d8f04
commit 4ddde78b86
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -52,7 +52,7 @@ uci:save('firewall')
local has_fastd = unistd.access('/lib/gluon/mesh-vpn/fastd')
local fastd_enabled = uci:get('fastd', 'mesh_vpn', 'enabled')
local has_tunneldigger = unistd.access('/lib/gluon/mesh-vpn/tunneldigger')
local has_tunneldigger = (not has_fastd) and unistd.access('/lib/gluon/mesh-vpn/tunneldigger')
local tunneldigger_enabled = uci:get('tunneldigger', 'mesh_vpn', 'enabled')
local enabled