Merge 688cf3af5c
into 93e48e0a9c
This commit is contained in:
commit
bccfd39ea3
|
@ -27,6 +27,20 @@ local function configure_radio(radio, index, config)
|
|||
|
||||
local mesh = 'mesh_' .. radio
|
||||
uci:delete('network', 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',
|
||||
|
@ -34,6 +48,7 @@ local function configure_radio(radio, index, config)
|
|||
mesh = 'bat0',
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
uci:delete('wireless', mesh)
|
||||
uci:section('wireless', 'wifi-iface', mesh,
|
||||
|
|
Loading…
Reference in New Issue