From bee61970582925b82e48aea44af73a37f654942a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Mon, 4 Apr 2022 15:59:44 +0200 Subject: [PATCH] mesh-olsrd: tell l3 with hack about intfs --- package/gluon-l3roamd/files/etc/init.d/gluon-l3roamd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-l3roamd/files/etc/init.d/gluon-l3roamd b/package/gluon-l3roamd/files/etc/init.d/gluon-l3roamd index c3ac1892..c8a52aea 100755 --- a/package/gluon-l3roamd/files/etc/init.d/gluon-l3roamd +++ b/package/gluon-l3roamd/files/etc/init.d/gluon-l3roamd @@ -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