public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [RFC] batman-adv boot setup scheme on OpenWRT
@ 2012-11-23 12:52 Gui Iribarren
  2012-11-23 14:00 ` Gui Iribarren
  2012-11-25 17:12 ` Marek Lindner
  0 siblings, 2 replies; 13+ messages in thread
From: Gui Iribarren @ 2012-11-23 12:52 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

Hello Marek and folks,
chasing a race condition, I might have delved a little too deep into
openwrt boot sequence :(

AFAICU, currently there's a /etc/hotplug.d/net/99-batman-adv script
which tries to configure both bat0 , and any interfaces coming up that
might have to be included there. Problem is, hotplug.d/net scripts are
called when interface is "added" but not necessarilly brought up yet.
So there's a "sleep 3s" that works in most cases as a window for slow
hardware bring up the interface.
...in most cases :(
on an old nanoloco2, creating 2 wifi-ifaces in ap mode and 1 in ibss
mode, managed with batman-adv, the sleep 3s is not enough. A 6s
timeout works around it, but maybe there's a better solution?

I've divided the script, putting the "add candidate interfaces to
bat0" into /etc/hotplug.d/*iface*/99-batman-adv , which gets called
precisely after an interface is actually brought up.

This works as expected, and i could even eliminate the original 3s sleep.

hotplug.d/iface script adds candidate interfaces to batX after they
are brought up
hotplug.d/net script configures batX as they appear,

Would that work in general? Or was the single hotplug.d/net
implemented that way, for a reason i'm missing?

Thanks!

Gui

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-12-10  0:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23 12:52 [B.A.T.M.A.N.] [RFC] batman-adv boot setup scheme on OpenWRT Gui Iribarren
2012-11-23 14:00 ` Gui Iribarren
2012-11-26 10:40   ` Marek Lindner
2012-11-26 10:45     ` Sven Eckelmann
2012-12-02 13:19       ` Gui Iribarren
2012-12-09 11:10         ` Moritz Warning
2012-12-09 14:31           ` Marek Lindner
2012-12-09 16:03             ` Moritz Warning
2012-12-09 16:20               ` Antonio Quartulli
2012-12-09 16:35               ` Gui Iribarren
2012-12-10  0:13                 ` Jo-Philipp Wich
2012-12-09 16:50               ` Moritz Warning
2012-11-25 17:12 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox