projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6a7f0b
)
mwan3: remove call to network_is_up
author
Etienne Champetier
<
[email protected]
>
Fri, 27 Jun 2025 23:18:54 +0000
(19:18 -0400)
committer
Florian Eckert
<
[email protected]
>
Fri, 1 Aug 2025 11:03:01 +0000
(13:03 +0200)
It calls jsonfilter but can be avoided as we know
network is up if uptime is present.
Signed-off-by: Etienne Champetier <
[email protected]
>
net/mwan3/files/usr/libexec/rpcd/mwan3
patch
|
blob
|
history
diff --git
a/net/mwan3/files/usr/libexec/rpcd/mwan3
b/net/mwan3/files/usr/libexec/rpcd/mwan3
index dbc5f57640b02e1556063e40000ded5add9a55b7..2ced4bb153947aaf85b0f35a4190eb03d4695a4d 100755
(executable)
--- 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