[oe-commits] [openembedded-core] 21/22: eudev: Keep classic network interface naming scheme

git at git.openembedded.org git at git.openembedded.org
Mon Feb 29 20:49:13 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit a42de42a1cdd24d6f741eb57b9d0582deaa22a41
Author: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
AuthorDate: Fri Feb 26 16:33:50 2016 +0000

    eudev: Keep classic network interface naming scheme
    
    Creates an empty udev rule, causing the system to use the classic network
    interface naming scheme, e. g. eth0, eth1.
    
    Signed-off-by: Alejandro Hernandez <alejandro.hernandez at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/udev/eudev_3.1.5.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/udev/eudev_3.1.5.bb b/meta/recipes-core/udev/eudev_3.1.5.bb
index 22021a0..4afcfdb 100644
--- a/meta/recipes-core/udev/eudev_3.1.5.bb
+++ b/meta/recipes-core/udev/eudev_3.1.5.bb
@@ -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 () {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list