batman-adv: init script tries to retrieve interfaces from uci
authormarek <marek@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 Apr 2011 12:49:37 +0000 (12:49 +0000)
committermarek <marek@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 Apr 2011 12:49:37 +0000 (12:49 +0000)
commit5ac395bf236658951c4f15e10e94c9ede3a0d32e
tree1ad9daa209eb0712d15fc017357cde85bdde79b6
parenta6d4ae4077b787beb9377cdb0b983192933ed3c2
batman-adv: init script tries to retrieve interfaces from uci

The batman-adv init script will query uci (network.$iface.ifname)
to retrieve the interface name to re-use the existing network
configuration system.
The default iface configuration (batman-adv.bat0.interfaces) is
set to 'mesh' which allows to start batman-adv as soon as the
network configuration contains a 'mesh' stanza.

Signed-off-by: Filippo Sallemi <tonyputi@gmail.com>
Signed-off-by: Gioacchino Mazzurco <gmazzurco89@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26719 3c298f89-4303-0410-b956-a3cf2f4a3e73
net/batman-adv/files/etc/config/batman-adv
net/batman-adv/files/etc/init.d/batman-adv