marek 4ee2c1e736 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
2012-11-26 10:36:23 +00:00

13 lines
245 B
Bash

#!/bin/sh
. /lib/batman-adv/config.sh
bat_load_module
config_load batman-adv
case "$ACTION" in
ifup)
[ -d /sys/class/net/$DEVICE/batman_adv/ ] && config_foreach bat_add_interface mesh "$DEVICE"
;;
esac