batman-adv: fix race condition between iface add and iface up

Signed-off-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>



git-svn-id: svn://svn.openwrt.org/openwrt/packages@34385 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
marek
2012-11-26 10:36:23 +00:00
parent 3de4f48885
commit 4ee2c1e736
4 changed files with 14 additions and 3 deletions

View File

@ -48,7 +48,6 @@ bat_add_interface()
local interface="$2"
local interfaces
sleep 3s # some device (ath) is very lazy to start
config_get interfaces $mesh interfaces
for iface in $interfaces; do
[ -f "/sys/class/net/$iface/batman_adv/mesh_iface" ] || {