From 6dc9339b57458519c1b80d1ebee334b75717b892 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Wed, 8 Jul 2020 14:24:35 +0200 Subject: recipes-core: udev: add systemd link file to disable wifi-if-renaming Related-to: ELB-2760 Signed-off-by: Philippe Schenker (cherry picked from commit fc137a7916fe004f476688b1e03dadd074e749b3) --- recipes-core/udev/files/10-toradex-wifi-ifnames.link | 6 ++++++ recipes-core/udev/udev-toradex-rules.bb | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 recipes-core/udev/files/10-toradex-wifi-ifnames.link diff --git a/recipes-core/udev/files/10-toradex-wifi-ifnames.link b/recipes-core/udev/files/10-toradex-wifi-ifnames.link new file mode 100644 index 0000000..35d5d20 --- /dev/null +++ b/recipes-core/udev/files/10-toradex-wifi-ifnames.link @@ -0,0 +1,6 @@ +[Match] +Driver=mwifiex_pcie + +[Link] +NamePolicy=keep kernel + diff --git a/recipes-core/udev/udev-toradex-rules.bb b/recipes-core/udev/udev-toradex-rules.bb index 9cc69a9..dc6248a 100644 --- a/recipes-core/udev/udev-toradex-rules.bb +++ b/recipes-core/udev/udev-toradex-rules.bb @@ -3,9 +3,12 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda SRC_URI = "\ file://99-toradex.rules \ + file://10-toradex-wifi-ifnames.link \ " do_install () { install -d ${D}${sysconfdir}/udev/rules.d + install -d ${D}${sysconfdir}/systemd/network install -m 0644 ${WORKDIR}/99-toradex.rules ${D}${sysconfdir}/udev/rules.d/ + install -m 0644 ${WORKDIR}/10-toradex-wifi-ifnames.link ${D}${sysconfdir}/systemd/network/ } -- cgit v1.2.3