projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
822bc96
)
net/mwan3: fix ipset generation in hotplug script with an lock
author
Florian Eckert
<fe@dev.tdt.de>
Wed, 2 Aug 2017 12:53:18 +0000
(14:53 +0200)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3
b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3
index ae18f529f1db5b15b07bb4db7c902ef8abb84a96..6be154ca94e366787510c8d9c9ea408ba74aa8f8 100644
(file)
--- a/
net/mwan3/files/etc/hotplug.d/iface/15-mwan3
+++ b/
net/mwan3/files/etc/hotplug.d/iface/15-mwan3
@@
-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