|
@@ -24,16 +24,7 @@ uci:section('batman-adv', 'mesh', 'bat0',
|
|
|
uci:save('batman-adv')
|
|
|
uci:commit('batman-adv')
|
|
|
|
|
|
-
|
|
|
-if not uci:get('network', 'client') then
|
|
|
- uci:section('network', 'interface', 'client',
|
|
|
- {
|
|
|
- type = 'bridge',
|
|
|
- proto = 'dhcpv6',
|
|
|
- reqprefix = 'no',
|
|
|
- }
|
|
|
- )
|
|
|
-
|
|
|
+if not uci:get('network', 'client', 'ifname') then
|
|
|
uci:add_to_set('network', 'client', 'ifname', 'bat0')
|
|
|
|
|
|
if sysconfig.lan_ifname and not site.mesh_on_lan then
|
|
@@ -41,17 +32,9 @@ if not uci:get('network', 'client') then
|
|
|
end
|
|
|
end
|
|
|
|
|
|
-local ifname = uci:get('network', 'client', 'ifname')
|
|
|
-
|
|
|
-if type(ifname) == 'string' then
|
|
|
- uci:delete('network', 'client', 'ifname')
|
|
|
- for x in ifname:gmatch("[^%s]+") do
|
|
|
- uci:add_to_set('network', 'client', 'ifname', x)
|
|
|
- end
|
|
|
-end
|
|
|
-
|
|
|
+uci:set('network', 'client', 'proto', 'dhcpv6')
|
|
|
+uci:set('network', 'client', 'reqprefix', 'no')
|
|
|
uci:set('network', 'client', 'igmp_snooping', 0)
|
|
|
-uci:set('network', 'client', 'macaddr', sysconfig.primary_mac)
|
|
|
uci:set('network', 'client', 'peerdns', 1)
|
|
|
uci:set('network', 'client', 'sourcefilter', 0)
|
|
|
|