net/mwan3: fix ipset generation in hotplug script with an lock
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 2 Aug 2017 12:53:18 +0000 (14:53 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Aug 2017 09:49:01 +0000 (11:49 +0200)
Fix critical section during hotplug events.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit a4fbc7eba670c2622c47ee9fe3d60d89909ea559)

net/mwan3/files/etc/hotplug.d/iface/15-mwan3

index ae18f529f1db5b15b07bb4db7c902ef8abb84a96..6be154ca94e366787510c8d9c9ea408ba74aa8f8 100644 (file)
@@ -17,7 +17,9 @@ fi
 [ -x /usr/sbin/ip6tables ] || exit 7
 [ -x /usr/bin/logger ] || exit 8
 
+mwan3_lock
 mwan3_set_connected_iptables
+mwan3_unlock
 
 config_load mwan3
 config_get enabled $INTERFACE enabled 0