010-mesh-vpn-fastd 258 B

1234567891011121314
  1. #!/usr/bin/lua
  2. local site = require 'gluon.site_config'
  3. local uci = require 'luci.model.uci'
  4. local c = uci.cursor()
  5. c:section('fastd', 'fastd', 'mesh_vpn',
  6. {
  7. enabled = site.fastd_mesh_vpn.enabled and 1 or 0
  8. }
  9. )
  10. c:save('fastd')
  11. c:commit('fastd')