From eb3acf926f9a5fd6d2269ed51882cd21bb506cde Mon Sep 17 00:00:00 2001 From: Aaron Goodman Date: Tue, 10 Nov 2020 08:42:02 -0500 Subject: [PATCH] mwan3: fix hotplug issues from 1f1d21 Signed-off-by: Aaron Goodman --- net/mwan3/files/etc/hotplug.d/iface/15-mwan3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 index f1755d26f..756611788 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -40,7 +40,7 @@ mwan3_init mwan3_set_connected_${family} } -if [ "$MWAN3_STARTUP" != 1 ] && [ "$ACTION" = "ifup" ]; then +if [ "$MWAN3_STARTUP" != "init" ] && [ "$ACTION" = "ifup" ]; then mwan3_set_user_iface_rules $INTERFACE $DEVICE fi @@ -69,7 +69,7 @@ case "$ACTION" in mwan3_create_iface_iptables $INTERFACE $DEVICE mwan3_create_iface_rules $INTERFACE $DEVICE mwan3_set_iface_hotplug_state $INTERFACE "$status" - if [ "$MWAN3_STARTUP" = "cmd" ]; then + if [ "$MWAN3_STARTUP" != "init" ]; then mwan3_create_iface_route $INTERFACE $DEVICE mwan3_set_general_rules [ "$status" = "online" ] && mwan3_set_policies_iptables