Skip to contentSkip to conversation

eudev: Keep classic network interface naming scheme

PATCH New Alejandro Hernandez 1 participant 1 message Feb 26, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 eudev: Keep classic network interface naming scheme

In reply to a message not in the archive

Creates an empty udev rule, causing the system to use the classic network interface naming scheme, e. g. eth0, eth1.

---
 meta/recipes-core/udev/eudev_3.1.5.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-core/udev/eudev_3.1.5.bb +3 -0
index 22021a0..4afcfdb 100644
@@ -75,6 +75,9 @@ do_install_append(){
         rm -f ${D}${base_libdir}/udev/hid2hci
 
         echo 'udev_run="/var/run/udev"' >> ${D}${sysconfdir}/udev/udev.conf
+
+        # Use classic network interface naming scheme
+        touch ${D}${sysconfdir}/udev/rules.d/80-net-name-slot.rules
 }
 
 python () {
Signature · 1 line
2.6.2