Thread (8 messages) flat view 8 messages, 2 authors, 2012-02-28

Re: [B.A.T.M.A.N.] Fwd: /lib/batman-adv/config.sh

From: Filippo Sallemi <hidden>
Date: 2012-02-27 12:42:58

Il 27 febbraio 2012 09:11, Marek Lindner [off-list ref] ha scritto:
On Monday, February 27, 2012 01:49:44 Filippo Sallemi wrote:
quoted
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
-- 
Filippo Sallemi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help