Hi all,
I setup the virtual interface bat0 which embeds wlan0 for my system. As described in the batman-adv README file, I did
# insmod batman-adv.ko and # echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
I can thus enable bat0 interface and start the batman-adv protocol in multihop environment.
However, when I restart the computer, I need to again load the kernel module and start the process from beginning.
I would like to run bat0 interface directly after restarting the computer (like we have it for wlan0 or eth0)
Could you please help me how do I do this?
Thanks in advance
Max
On Monday 27 June 2011 09:48:38 Max Ip wrote: [...]
I would like to run bat0 interface directly after restarting the computer (like we have it for wlan0 or eth0)
Could you please help me how do I do this?
This is a task for your distributions and we cannot help you here. For example, I think there should be uci support for batman-adv in OpenWRT. There could be support in other networking scripts of other distributions, but usually there is some kind of "user init-script" which is called as last init script so that the user can make his own modifications. (On Debian this would be /etc/rc.local). You can just add the commands needed for the setup to this file and it will be automatically done after the system started. Some networking scripts also allow hooks to be added so that the batman-adv device can automatically be started/removed when another network interface appears/disappears or gets/looses a link.
Kind regards, Sven
b.a.t.m.a.n@lists.open-mesh.org