mesh-olsrd: tell l3 with hack about intfs

This commit is contained in:
Maciej Krüger 2022-04-04 15:59:44 +02:00 committed by Alexander List
parent d3dfe57505
commit bee6197058

View File

@ -20,14 +20,14 @@ echotol3roamd() {
reload_service() {
for i in $(ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device")
for i in $(echo /nhdpinfo interface | nc localhost 2009 | cut -f1)
do
echotol3roamd "add_meshif $i"
done
for i in $(echotol3roamd "get_meshifs"| jsonfilter -e "@.mesh_interfaces[@]")
do
if ! ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device"|grep -q $i
if ! echo /nhdpinfo interface | nc localhost 2009 | cut -f1 |grep -q $i
then
echotol3roamd "del_meshif $i"
fi