skeleton: optionally wait for network interfaces to appear
authorJérôme Pouiller <jezz@sysmic.org>
Thu, 29 Oct 2015 09:00:18 +0000 (10:00 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 2 Nov 2015 15:51:47 +0000 (16:51 +0100)
commitccc52c8183730a6b7f498d371520e881dfb41668
tree9d0466c62f26bdc7b6432fa224082ab67e075743
parent81ece45c3aae23f899b92eabfe45e0bdb73ed789
skeleton: optionally wait for network interfaces to appear

This patch has same purpose than 49964858f45d2243c513e6d362e992ad89ec7a45:

  On some machines, the network interface is slow to appear. For example,
  on the Raspberry Pi, the network interface eth0 is an ethernet-over-USB,
  and our standard boot process is too fast, so our network startup script
  is called before the USB bus is compeltely enumerated, thus it can't
  configure eth0.

  Closes #8116.

However, wait-delay hook is enabled only if wait-delay property appears
in /etc/network/interfaces. This patch enable it automaticaly when
interface is configured through DHCP at bootup. But, if user choose
to write /etc/network/interface himself, he have to explicitly
set wait-delay.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/skeleton/skeleton.mk
system/skeleton/etc/network/if-pre-up.d/wait_iface [new file with mode: 0755]