From 17b0823cd0f7617a4f76f0e6eceda21f32d40a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Mon, 4 Apr 2022 16:08:56 +0200 Subject: [PATCH] Revert "mesh-olsrd: tell l3 with hack about intfs" This reverts commit 83b18ae44f4da4063072b91ada6a6286a6da8a6f. --- 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 c8a52aea..c3ac1892 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 $(echo /nhdpinfo interface | nc localhost 2009 | cut -f1) + for i in $(ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device") do echotol3roamd "add_meshif $i" done for i in $(echotol3roamd "get_meshifs"| jsonfilter -e "@.mesh_interfaces[@]") do - if ! echo /nhdpinfo interface | nc localhost 2009 | cut -f1 |grep -q $i + if ! ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device"|grep -q $i then echotol3roamd "del_meshif $i" fi