This commit is contained in:
FreifunkUFO 2015-01-18 05:37:37 +00:00
commit bccfd39ea3
1 changed files with 17 additions and 2 deletions

View File

@ -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,