mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
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:
committed by
Richard Purdie
parent
d2b445384d
commit
ea5cea668f
@@ -13,11 +13,14 @@ iface wlan0 inet dhcp
|
|||||||
|
|
||||||
iface atml0 inet dhcp
|
iface atml0 inet dhcp
|
||||||
|
|
||||||
# Wired or wireless interfaces
|
# Wired or wireless interfaces including predictable names
|
||||||
auto eth0
|
auto /eth0
|
||||||
iface eth0 inet dhcp
|
iface eth0 inet dhcp
|
||||||
iface eth1 inet dhcp
|
iface eth1 inet dhcp
|
||||||
|
|
||||||
|
auto /en*=eth
|
||||||
|
iface eth inet dhcp
|
||||||
|
|
||||||
# Ethernet/RNDIS gadget (g_ether)
|
# Ethernet/RNDIS gadget (g_ether)
|
||||||
# ... or on host side, usbnet and random hwaddr
|
# ... or on host side, usbnet and random hwaddr
|
||||||
iface usb0 inet static
|
iface usb0 inet static
|
||||||
|
|||||||
Reference in New Issue
Block a user