Il 27 febbraio 2012 09:11, Marek Lindner lindner_marek@yahoo.de ha scritto:
On Monday, February 27, 2012 01:49:44 Filippo Sallemi wrote:
Ok in this email my proposal patch. I've to sleep 4s if you have an ap + adhoc vifs.
[ "$(echo $interface | awk '$0 ~ /^wlan[0-9]*/')" ] && sleep 4s
For convenience I sleep only if an wlan was triggered. If you have only one interface in adhoc mode per radio 3 seconds are enought.
What if somebody calls his interfaces in a different way ? As you know the name can freely be chosen.
You can chose another name instead of wlan0 wlan0-1 wlan1 wlan1-1 eth0 eth1 ...? This line is executed only when hotplug is called on network restart and so when every interface is triggered. when eth0 is added we don't sleep but when if wlan0 is triggered then we sleep 4 seconds because the real state of the interface and so the real name of your logical network take some time to be ready.
Regards, Marek
Rgds