summaryrefslogtreecommitdiff
path: root/recipes/udev/files/udev-compat-wrapper-patch
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2010-08-29 23:40:26 +0000
committerutx@penguin.cz <utx@penguin.cz>2010-08-29 23:40:26 +0000
commit0e59321a3f00cdcf6e0f92e83b9ccce37a53d153 (patch)
tree9ff4d4be0200596995ca22886c82b9e80613e707 /recipes/udev/files/udev-compat-wrapper-patch
parentbf8ba265bbbfd2e0bc5e2330f2f96b5049ff9c3d (diff)
udev: udev-compat-wrapper-patch: Use KERNELMICROVER evaluation that does not fail on rc and four-part versions.
Diffstat (limited to 'recipes/udev/files/udev-compat-wrapper-patch')
-rw-r--r--recipes/udev/files/udev-compat-wrapper-patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/udev/files/udev-compat-wrapper-patch b/recipes/udev/files/udev-compat-wrapper-patch
index a3e312d6a6..c90d05aefa 100644
--- a/recipes/udev/files/udev-compat-wrapper-patch
+++ b/recipes/udev/files/udev-compat-wrapper-patch
@@ -16,7 +16,7 @@ WORKDIR and cannot be selectively applied on another source file.
+UDEVADM="/sbin/udevadm"
+# 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 | awk -F. '{print $3}')"
++ KERNELMICROVER="$(uname -r | sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*$/\1/')"
+ if [ $KERNELMICROVER -lt 27 ] ; then
+ UDEVD="/sbin/udevd-compat"
+ UDEVADM="/sbin/udevadm-compat"