]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
init-ifupdown: add predictable interface names
authorJoe Slater <joe.slater@windriver.com>
Wed, 10 Jan 2024 21:10:16 +0000 (13:10 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Jan 2024 21:42:04 +0000 (21:42 +0000)
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.

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>
meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces

index 0acf4cf441d77d300ccdfb5c7d2f0d674f94c7a9..e617fcf69b732b929027689fb10458accadc1c6b 100644 (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