Merge 9b1eb8478f
into 93e48e0a9c
This commit is contained in:
commit
6f299eb102
|
@ -27,13 +27,30 @@ local function configure_radio(radio, index, config)
|
|||
|
||||
local mesh = 'mesh_' .. radio
|
||||
uci:delete('network', mesh)
|
||||
uci:section('network', 'interface', mesh,
|
||||
|
||||
if config.vlan_batadv then
|
||||
local meshif = mesh .. '_' .. config.vlan_batadv
|
||||
local meshifn = '@' .. mesh .. '.' .. config.vlan_batadv
|
||||
uci:section('network', 'interface', mesh,
|
||||
{ proto = 'none', mtu = '1536',})
|
||||
uci:delete('network', meshif)
|
||||
uci:section('network', 'interface', meshif,
|
||||
{
|
||||
ifname = meshifn,
|
||||
proto = 'batadv',
|
||||
mtu = '1532',
|
||||
mesh = 'bat0',
|
||||
}
|
||||
)
|
||||
else
|
||||
uci:section('network', 'interface', mesh,
|
||||
{
|
||||
proto = 'batadv',
|
||||
mtu = '1528',
|
||||
mesh = 'bat0',
|
||||
}
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
uci:delete('wireless', mesh)
|
||||
uci:section('wireless', 'wifi-iface', mesh,
|
||||
|
|
Loading…
Reference in New Issue