aboutsummaryrefslogtreecommitdiff
path: root/net/mwan3
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2023-09-15 11:44:41 +0200
committerFlorian Eckert <fe@dev.tdt.de>2023-09-20 16:10:06 +0200
commit002439594c6c207c34337ad3c8868d4ec9a46fa4 (patch)
tree60da4c5adfa95df3422af648669650957e7b1a60 /net/mwan3
parent28e058e92f603ceabe32f86627fc32aba468e762 (diff)
mwan3: also show tracker state via ubus
The tracker state is not shown via ubus. Only if the tracker was in active state, then the boolean running was set or not. By adding the tracking state to the ubus information we could also evaluate the state of the tracker. To remain compatible, the runnig flag of the tracker is not removed, which in fact displays the same information, but only if the tracker is in state 'active' or not. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'net/mwan3')
-rw-r--r--net/mwan3/Makefile2
-rwxr-xr-xnet/mwan3/files/usr/libexec/rpcd/mwan31
2 files changed, 2 insertions, 1 deletions
diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile
index 606992b61..d6d2075aa 100644
--- a/net/mwan3/Makefile
+++ b/net/mwan3/Makefile
@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mwan3
-PKG_VERSION:=2.11.10
+PKG_VERSION:=2.11.11
PKG_RELEASE:=1
PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>, \
Aaron Goodman <aaronjg@alumni.stanford.edu>
diff --git a/net/mwan3/files/usr/libexec/rpcd/mwan3 b/net/mwan3/files/usr/libexec/rpcd/mwan3
index eccd10196..4bd2b631f 100755
--- a/net/mwan3/files/usr/libexec/rpcd/mwan3
+++ b/net/mwan3/files/usr/libexec/rpcd/mwan3
@@ -127,6 +127,7 @@ get_mwan3_status() {
json_add_string "status" "${status}"
json_add_boolean "enabled" "${enabled}"
json_add_boolean "running" "${running}"
+ json_add_string "tracking" "${track_status}"
json_add_boolean "up" "${up}"
json_add_array "track_ip"
for file in $MWAN3TRACK_STATUS_DIR/${iface}/TRACK_*; do