packages/net/mwan3/files
Philipp Schmitt 3f7c3ee7f7 mwan3: write `mwan3 use` error/debug messages to stderr instead of stdout
This redirects the debug output to stderr, allowing `mwan3 use` to be used in
scripts without polluting stdout.

Before:

mwan3 use wan curl -fsSL https://ifconfig.co/json | jq -er '.country_iso'
jq: parse error: Invalid numeric literal at line 1, column 8
curl: (23) Failure writing output to destination, passed 389 returned 0

After:

mwan3 use wan curl -fsSL https://ifconfig.co/json | jq -er '.country_iso'
Running 'curl -fsSL https://ifconfig.co/json' with DEVICE=eth2 SRCIP=192.168.0.1 FWMARK=0x3f00 FAMILY=ipv4
DE

Signed-off-by: Philipp Schmitt <philipp@schmitt.co>
2025-02-20 11:10:34 +01:00
..
etc mwan3: close flock fd when starting mwan3.user scripts 2024-10-29 08:44:44 +01:00
lib/mwan3 Revert "mwan3: use network_get_preferred_ipaddr6" 2024-09-27 15:22:09 +02:00
usr mwan3: write `mwan3 use` error/debug messages to stderr instead of stdout 2025-02-20 11:10:34 +01:00