diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index b31f4ce342..3242189697 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mwan3 -PKG_VERSION:=2.11.8 +PKG_VERSION:=2.11.9 PKG_RELEASE:=1 PKG_MAINTAINER:=Florian Eckert , \ Aaron Goodman diff --git a/net/mwan3/files/usr/libexec/rpcd/mwan3 b/net/mwan3/files/usr/libexec/rpcd/mwan3 index 3fce9b0d4d..eccd10196c 100755 --- a/net/mwan3/files/usr/libexec/rpcd/mwan3 +++ b/net/mwan3/files/usr/libexec/rpcd/mwan3 @@ -106,14 +106,10 @@ get_mwan3_status() { config_get enabled "$iface" enabled 0 - if [ -d "${MWAN3_STATUS_DIR}" ]; then + if [ -f "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS" ]; then network_get_uptime uptime "$iface" network_is_up "$iface" && up="1" - if [ -f "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS" ]; then - status="$(cat "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS")" - else - status="notracking" - fi + status="$(cat "$MWAN3TRACK_STATUS_DIR/${iface}/STATUS")" else uptime=0 up=0