From a4fbc7eba670c2622c47ee9fe3d60d89909ea559 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 2 Aug 2017 14:53:18 +0200 Subject: [PATCH] net/mwan3: fix ipset generation in hotplug script with an lock Fix critical section during hotplug events. Signed-off-by: Florian Eckert --- net/mwan3/files/etc/hotplug.d/iface/15-mwan3 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 index cd4bdb3b1..f9638e62b 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -12,7 +12,9 @@ if [ "$ACTION" == "ifup" ]; then [ -n "$DEVICE" ] || exit 3 fi +mwan3_lock mwan3_set_connected_iptables +mwan3_unlock config_load mwan3 config_get enabled $INTERFACE enabled 0