From 803f69546ea9fa921fbbf8f00036036f53cf79ee Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 12 Sep 2017 15:54:14 +0200 Subject: [PATCH 1/2] net/mwan3: fix mwan3track STATUS if initial_state is offline Signed-off-by: Florian Eckert --- net/mwan3/Makefile | 2 +- net/mwan3/files/etc/hotplug.d/iface/15-mwan3 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index a4b23d37a..34e38f07c 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mwan3 -PKG_VERSION:=2.6.5 +PKG_VERSION:=2.6.6 PKG_RELEASE:=1 PKG_MAINTAINER:=Florian Eckert PKG_LICENSE:=GPLv2 diff --git a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 index dfeff7daa..27033d582 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -77,7 +77,7 @@ case "$ACTION" in else $LOG notice "Starting tracker on interface $INTERFACE (${DEVICE:-unknown})" mwan3_set_iface_hotplug_state $INTERFACE "offline" - mwan3_track $INTERFACE $DEVICE "offline" "$src_ip" + mwan3_track $INTERFACE $DEVICE "unknown" "$src_ip" fi ;; ifdown) From 2cf984c69e73ee3534684d4ee337104a49409ff7 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 12 Sep 2017 16:14:32 +0200 Subject: [PATCH 2/2] net/mwan3: fix track_ips order Signed-off-by: Florian Eckert --- net/mwan3/files/lib/mwan3/mwan3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh index 06d8ee3f2..a92cb4687 100644 --- a/net/mwan3/files/lib/mwan3/mwan3.sh +++ b/net/mwan3/files/lib/mwan3/mwan3.sh @@ -460,7 +460,7 @@ mwan3_track() mwan3_list_track_ips() { - track_ips="$1 $track_ips" + track_ips="$track_ips $1" } config_list_foreach $1 track_ip mwan3_list_track_ips