From: Etienne Champetier Date: Fri, 27 Jun 2025 23:18:54 +0000 (-0400) Subject: mwan3: remove call to network_is_up X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=bfdbacca5688a2704341f572a9677236c8ebffec;p=feed%2Fpackages.git mwan3: remove call to network_is_up It calls jsonfilter but can be avoided as we know network is up if uptime is present. Signed-off-by: Etienne Champetier --- diff --git a/net/mwan3/files/usr/libexec/rpcd/mwan3 b/net/mwan3/files/usr/libexec/rpcd/mwan3 index dbc5f57640..2ced4bb153 100755 --- a/net/mwan3/files/usr/libexec/rpcd/mwan3 +++ b/net/mwan3/files/usr/libexec/rpcd/mwan3 @@ -108,7 +108,7 @@ get_mwan3_status() { if [ -f "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS" ]; then network_get_uptime uptime "$iface" - network_is_up "$iface" && up="1" + [ -n "$uptime" ] && up=1 || up=0 readfile status "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS" else uptime=0