Skip to content
Snippets Groups Projects
Unverified Commit 6788eb9c authored by Jan-Philipp Litza's avatar Jan-Philipp Litza Committed by Matthias Schiffer
Browse files

gluon-respondd: restart on state change of client iface

Because we unconditionally appended `-i br-client` to the command line of
respondd, it wasn't restarted when br-client changed state. Now, we use a
jsonfilter expression on the network.interface dump data, similar to how the
other interface names are generated, and only add the interface to the argument
list if it is up.
parent 3d5d69f9
No related branches found
No related tags found
No related merge requests found
br-client
client
......@@ -7,7 +7,9 @@ DAEMON=/usr/bin/respondd
start_service() {
DEVS=""
for dev in $( ubus call network.interface dump | jsonfilter -e "@.interface[@.proto='gluon_mesh' && @.up=true].device") $(cat /lib/gluon/respondd/client.dev 2>/dev/null)
for dev in $( ubus call network.interface dump | jsonfilter \
-e "@.interface[@.proto='gluon_mesh' && @.up=true].device" \
-e "@.interface[@.interface='$(cat /lib/gluon/respondd/client.dev 2>/dev/null)' && @.up=true].device")
do
DEVS="$DEVS -i $dev"
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment