mwan3: return via variable
authorEtienne Champetier <[email protected]>
Fri, 27 Jun 2025 23:18:52 +0000 (19:18 -0400)
committerFlorian Eckert <[email protected]>
Fri, 1 Aug 2025 11:03:01 +0000 (13:03 +0200)
commita6a7f0b21b0d5e954119dfa19cde1967dd07a617
treeb671d8697ed1c5ff50a293587567bbb90d646c03
parentecd2470ddb0c3e2b3cf6acf2ef5ceb78e3fdfe14
mwan3: return via variable

Using $(...) to call an internal function causes a fork().
Pass the name of the return variable as first parameter,
and write to it using 'export -n'.

Signed-off-by: Etienne Champetier <[email protected]>
net/mwan3/files/lib/mwan3/common.sh
net/mwan3/files/lib/mwan3/mwan3.sh
net/mwan3/files/usr/libexec/rpcd/mwan3
net/mwan3/files/usr/sbin/mwan3rtmon