|
|
|
@ -57,7 +57,14 @@ add_wifi_mesh() {
|
|
|
|
|
uci set network.nwi_mesh_$apall.proto='batadv_hardif'
|
|
|
|
|
uci set network.nwi_mesh_$apall.master='bat0'
|
|
|
|
|
uci set network.nwi_mesh_$apall.mtu='1536'
|
|
|
|
|
# adding batman to the 'lan' zone in fw
|
|
|
|
|
uci del_list firewall.lan.network="bat0"
|
|
|
|
|
uci add_list firewall.lan.network='bat0'
|
|
|
|
|
uci del_list firewall.lan.network="nwi_mesh_$apall"
|
|
|
|
|
uci add_list firewall.lan.network="nwi_mesh_$apall"
|
|
|
|
|
uci commit network
|
|
|
|
|
uci commit firewall
|
|
|
|
|
/etc/init.d/firewall restart
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ "$mesh_mesh" != "wifi-iface" ]; then
|
|
|
|
|