210-interface-wan 374 B

12345678910111213141516
  1. #!/usr/bin/lua
  2. local site = require 'gluon.site_config'
  3. local uci = require('simple-uci').cursor()
  4. if not uci:get('network', 'mesh_wan') then
  5. uci:section('network', 'interface', 'mesh_wan', {
  6. ifname = 'br-wan',
  7. proto = 'gluon_mesh',
  8. transitive = true,
  9. fixed_mtu = true,
  10. auto = site.mesh_on_wan or false,
  11. })
  12. end
  13. uci:save('network')