net/mwan3: also send connected action on initial_state offline

Move action into startup section will fix this.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2018-04-05 13:15:18 +02:00 committed by Yousong Zhou
parent 1eae1ae3e7
commit f8cf485212
1 changed files with 1 additions and 1 deletions

View File

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