init-ifupdown: add predictable interface names

Use a pattern to initialize interfaces which start
with 'en'.  Also, make 'eth0' a pattern so that we
do not see an initialization error if it has been
renamed.

(From OE-Core rev: 4f1ca42b0ae09280247824f08a2b8f22f396b3d1)

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joe Slater
2024-01-10 13:10:16 -08:00
committed by Richard Purdie
parent d2b445384d
commit ea5cea668f

View File

@@ -13,11 +13,14 @@ iface wlan0 inet dhcp
iface atml0 inet dhcp
# Wired or wireless interfaces
auto eth0
# Wired or wireless interfaces including predictable names
auto /eth0
iface eth0 inet dhcp
iface eth1 inet dhcp
auto /en*=eth
iface eth inet dhcp
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static