summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/udev')
-rw-r--r--sys-fs/udev/udev-249.6-r1.ebuild6
-rw-r--r--sys-fs/udev/udev-249.6.ebuild6
-rw-r--r--sys-fs/udev/udev-9999.ebuild6
3 files changed, 18 insertions, 0 deletions
diff --git a/sys-fs/udev/udev-249.6-r1.ebuild b/sys-fs/udev/udev-249.6-r1.ebuild
index cc70f84d4598..aa9f2ad8efe6 100644
--- a/sys-fs/udev/udev-249.6-r1.ebuild
+++ b/sys-fs/udev/udev-249.6-r1.ebuild
@@ -299,5 +299,11 @@ pkg_postinst() {
ewarn
ewarn "If you wish to disable this, please see the above documentation, or set"
ewarn "net.ifnames=0 on the kernel command line."
+ if [[ -e ${EROOT}/etc/udev/rules.d/80-net-name-slot.rules ]]; then
+ ewarn
+ ewarn "Detected '${EROOT}/etc/udev/rules.d/80-net-name-slot.rules'"
+ ewarn "Renaming to '${EROOT}/etc/udev/rules.d/80-net-setup-link.rules'"
+ mv "${EROOT}"/etc/udev/rules.d/80-net-{name-slot,setup-link}.rules
+ fi
fi
}
diff --git a/sys-fs/udev/udev-249.6.ebuild b/sys-fs/udev/udev-249.6.ebuild
index 99e87d5ebe55..d3c2c55adb2b 100644
--- a/sys-fs/udev/udev-249.6.ebuild
+++ b/sys-fs/udev/udev-249.6.ebuild
@@ -292,5 +292,11 @@ pkg_postinst() {
ewarn
ewarn "If you wish to disable this, please see the above documentation, or set"
ewarn "net.ifnames=0 on the kernel command line."
+ if [[ -e ${EROOT}/etc/udev/rules.d/80-net-name-slot.rules ]]; then
+ ewarn
+ ewarn "Detected '${EROOT}/etc/udev/rules.d/80-net-name-slot.rules'"
+ ewarn "Renaming to '${EROOT}/etc/udev/rules.d/80-net-setup-link.rules'"
+ mv "${EROOT}"/etc/udev/rules.d/80-net-{name-slot,setup-link}.rules
+ fi
fi
}
diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild
index 3b56e4e1f8ea..66f6958287d3 100644
--- a/sys-fs/udev/udev-9999.ebuild
+++ b/sys-fs/udev/udev-9999.ebuild
@@ -299,5 +299,11 @@ pkg_postinst() {
ewarn
ewarn "If you wish to disable this, please see the above documentation, or set"
ewarn "net.ifnames=0 on the kernel command line."
+ if [[ -e ${EROOT}/etc/udev/rules.d/80-net-name-slot.rules ]]; then
+ ewarn
+ ewarn "Detected '${EROOT}/etc/udev/rules.d/80-net-name-slot.rules'"
+ ewarn "Renaming to '${EROOT}/etc/udev/rules.d/80-net-setup-link.rules'"
+ mv "${EROOT}"/etc/udev/rules.d/80-net-{name-slot,setup-link}.rules
+ fi
fi
}