mwan3: only update src_iface rules on ifup
authorAaron Goodman <aaronjg@stanford.edu>
Tue, 1 Sep 2020 23:20:41 +0000 (19:20 -0400)
committerAaron Goodman <aaronjg@stanford.edu>
Fri, 16 Oct 2020 13:54:48 +0000 (09:54 -0400)
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
net/mwan3/files/etc/hotplug.d/iface/15-mwan3

index 586dfc1f6841166237866dc2aba892b1d3431c5e..196b032574b6135b5332cbb8f7d9d426ec16fa3b 100644 (file)
@@ -37,7 +37,7 @@ mwan3_init
        mwan3_set_connected_${family}
 }
 
-if [ "$MWAN3_STARTUP" != 1 ]; then
+if [ "$MWAN3_STARTUP" != 1 ] && [ "$ACTION" = "ifup" ]; then
        mwan3_set_user_iface_rules $INTERFACE $DEVICE
 fi