mwan3: propagate mwan3 use command exit code
authorPhilipp Schmitt <philipp@schmitt.co>
Tue, 18 Feb 2025 16:16:45 +0000 (17:16 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Thu, 20 Feb 2025 06:59:20 +0000 (07:59 +0100)
commit0c9f4a84101c893b77b8d23b3db4cef00ad18c35
tree2a230e4c2d1bd70bee959b1ad06af65ccf3aa09f
parent0a2746c6d6cdd92e310408e22a30b1088ac60bc3
mwan3: propagate mwan3 use command exit code

This propagates the exit code of the command wrapped by `mwan3 use` and
allows for example to use `mwan3 use` in monitoring scripts.

Before change:
shell command:
  mwan3 use wan false >/dev/null && echo ok || echo fail
result:
  ok

After change:
shell command:
  mwan3 use wan false >/dev/null && echo ok || echo fail
result:
  fail

Signed-off-by: Philipp Schmitt <philipp@schmitt.co>
net/mwan3/Makefile
net/mwan3/files/usr/sbin/mwan3