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

mesh-vpn-fastd: enable from site.conf

This patch allows fastd's enabled flag's default value to be set from
site.conf.
parent e2ff6a6e
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