aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/udev/udev/udev-compat-wrapper-patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/udev/udev/udev-compat-wrapper-patch')
-rw-r--r--recipes/udev/udev/udev-compat-wrapper-patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/udev/udev/udev-compat-wrapper-patch b/recipes/udev/udev/udev-compat-wrapper-patch
index c90d05aefa..ed18fea92f 100644
--- a/recipes/udev/udev/udev-compat-wrapper-patch
+++ b/recipes/udev/udev/udev-compat-wrapper-patch
@@ -1,4 +1,4 @@
-This patch should be applied on platforms which support kernels < 2.6.27 and need udev-compat package.
+This patch should be applied on platforms which support kernels < 2.6.28 and need udev-compat package.
It should be applied after:
sed -i "s:/sbin/udevd:\$UDEVD:g;s:/sbin/udevadm:\$UDEVADM:g" init
@@ -17,7 +17,7 @@ WORKDIR and cannot be selectively applied on another source file.
+# If we are running an old kernel and have a static udev present use that instead
+if [ -e /sbin/udevd-compat ] ; then
+ KERNELMICROVER="$(uname -r | sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*$/\1/')"
-+ if [ $KERNELMICROVER -lt 27 ] ; then
++ if [ $KERNELMICROVER -lt 28 ] ; then
+ UDEVD="/sbin/udevd-compat"
+ UDEVADM="/sbin/udevadm-compat"
+ fi