Merge 688cf3af5c
into 93e48e0a9c
This commit is contained in:
commit
bccfd39ea3
|
@ -27,13 +27,28 @@ local function configure_radio(radio, index, config)
|
|||
|
||||
local mesh = 'mesh_' .. radio
|
||||
uci:delete('network', mesh)
|
||||
uci:section('network', 'interface', mesh,
|
||||
uci:delete('network', mesh .. '_vbatadv')
|
||||
|
||||
if config.vlan_batadv then
|
||||
uci:section('network', 'interface', mesh,
|
||||
{ proto = 'none', mtu = '1536',})
|
||||
uci:section('network', 'interface', mesh .. '_vbatadv',
|
||||
{
|
||||
ifname = '@' .. mesh .. '.' .. config.vlan_batadv,
|
||||
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