Hi
I'm trying batman-adv on openwrt on tp-link hardware. Some month ago, there were some bugs in the ar71xx adhoc mode which now seem resolved. I could setup a 2 node mesh test with batman-adv quite easily. One node is a gateway, the other is a repeater. The gateway has coova-chilli and 2 networks exported with batman-adv: the private and the public network. Both networks are bridged to batman-adv vlans, ethernet ports and wifi ssids. The repeater doesn't have coova-chilli, but bridge both networks to the wifi ssid and ethernet ports. But I would like to automate deployment with a single firmware, and need to auto-detect if the internet come from the WAN port or not.
The problem is that if I bridge the wan port, I can't use hotplug.d/iface feature because the whole bridge is declared up wether or not the internet port is connected.
Should I unconfigure the bridges first, then detect if internet works, then connect the bridge to batman?
Anyone have an idea on how I could do this?
Thanks