Skip to content
Snippets Groups Projects
Commit 29464a4b authored by Nils Schneider's avatar Nils Schneider
Browse files

Merge pull request #72 from freifunk-gluon/fastd-site-enable

mesh-vpn-fastd: enable from site.conf
parents ae43f3dc 4e19df09
No related branches found
No related tags found
No related merge requests found
......@@ -11,3 +11,4 @@ local function check_peer(k, _)
end
need_table('fastd_mesh_vpn.backbone.peers', check_peer)
need_boolean('fastd_mesh_vpn.enabled', false)
#!/usr/bin/lua
local site = require 'gluon.site_config'
local uci = require 'luci.model.uci'
local c = uci.cursor()
c:section('fastd', 'fastd', 'mesh_vpn',
{
enabled = site.fastd_mesh_vpn.enabled and 1 or 0
}
)
c:save('fastd')
c:commit('fastd')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment