|
@@ -51,9 +51,20 @@ uci:section('network', 'interface', 'bat0',
|
|
proto = 'none',
|
|
proto = 'none',
|
|
macaddr = sysconfig.primary_mac,
|
|
macaddr = sysconfig.primary_mac,
|
|
multicast_router = 2,
|
|
multicast_router = 2,
|
|
|
|
+ learning = 0,
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+uci:delete('network', 'client_lan')
|
|
|
|
+if sysconfig.lan_ifname then
|
|
|
|
+ uci:section('network', 'interface', 'client_lan',
|
|
|
|
+ {
|
|
|
|
+ unicast_flood = 0,
|
|
|
|
+ }
|
|
|
|
+ )
|
|
|
|
+ uci:set('network', 'client_lan', 'ifname', sysconfig.lan_ifname)
|
|
|
|
+end
|
|
|
|
+
|
|
uci:save('network')
|
|
uci:save('network')
|
|
|
|
|
|
|
|
|