[Buildroot] [PATCH 2/3] skeleton: optionally wait for network interfaces to appear

Nicolas Cavallari nicolas.cavallari at green-communications.fr
Thu Oct 29 07:53:41 UTC 2015


On 28/10/2015 22:37, Yann E. MORIN wrote:
> OK, thanks for the explanations. So there is no relation between the
> 'stanza' name and the script name, right?

None at all. ifupdown just run-parts /etc/if-$PHASE.d/ and the scripts
are responsible for not doing anything when they shouldn't.

> Also, I read this in man 5 interfaces;
> 
>     When ifupdown is being called with the --all option, before doing
>     anything to interfaces, if [sic] calls all the hook scripts (pre-up
>     or down) with IFACE set to "--all", LOGICAL set to the current value
>     of --allow parameter (or "auto" if it's  not set), ADDRFAM="meta"
>     and METHOD="none". After all the interfaces have been brought up or
>     taken down, the appropriate scripts (up or post-down) are executed.
> 
> Since S40network calls 'ifup -a' and you added a pre-up script, I guess
> it should filter out the '--all' interface and exit early in that case.

When run in this case, it will have no IF_WAIT_DELAY variable, so the
script will not do anything.



More information about the buildroot mailing list