From f8cf4852123f49fe64c845d47f4e8329de664862 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 5 Apr 2018 13:15:18 +0200 Subject: [PATCH] net/mwan3: also send connected action on initial_state offline Move action into startup section will fix this. Signed-off-by: Florian Eckert --- net/mwan3/files/usr/sbin/mwan3track | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index fb72e99a3f..3593d11a43 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -99,6 +99,7 @@ main() { score=0 else echo "online" > /var/run/mwan3track/$1/STATUS + env -i ACTION="connected" INTERFACE="$1" DEVICE="$2" /sbin/hotplug-call iface fi while true; do @@ -169,7 +170,6 @@ main() { if [ $score -eq $up ]; then $LOG notice "Interface $1 ($2) is online" echo "online" > /var/run/mwan3track/$1/STATUS - env -i ACTION="connected" INTERFACE="$1" DEVICE="$2" /sbin/hotplug-call iface env -i ACTION=ifup INTERFACE=$1 DEVICE=$2 /sbin/hotplug-call iface exit 0 fi -- 2.30.2