diff options
Diffstat (limited to 'recipes/udev/files/udev-compat-wrapper-patch')
-rw-r--r-- | recipes/udev/files/udev-compat-wrapper-patch | 2 |
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" |