35 lines
523 B
Lua
Executable File
35 lines
523 B
Lua
Executable File
#!/usr/bin/lua
|
|
|
|
local uci = require('luci.model.uci').cursor()
|
|
local site = require 'gluon.site_config'
|
|
|
|
uci:section('babeld', 'general', 'gluon',
|
|
{
|
|
export_table = 10,
|
|
import_table = {
|
|
255,
|
|
11,
|
|
},
|
|
}
|
|
)
|
|
|
|
uci:section('network', 'rule6', 'babel_import_lookup',
|
|
{
|
|
lookup = 11,
|
|
priority = 64000,
|
|
}
|
|
)
|
|
|
|
uci:section('network', 'rule6', 'babel_export_lookup',
|
|
{
|
|
lookup = 10,
|
|
priority = 64100,
|
|
}
|
|
)
|
|
|
|
uci:save('babeld')
|
|
uci:save('network')
|
|
uci:commit('babeld')
|
|
uci:commit('network')
|
|
|