Merge pull request #4821 from TDT-GmbH/pr/20170912-mwan3-fix-intial-state

net/mwan3: fix mwan3track initial_state and track_ip order
This commit is contained in:
champtar 2017-09-14 17:32:12 -07:00 committed by GitHub
commit 6818e862bc
3 changed files with 3 additions and 3 deletions

View file

@ -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 <fe@dev.tdt.de>
PKG_LICENSE:=GPLv2

View file

@ -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)

View file

@ -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