udev: udev-compat-wrapper-patch: Use KERNELMICROVER evaluation that does not fail...
authorStanislav Brabec <utx@penguin.cz>
Sun, 29 Aug 2010 23:40:26 +0000 (23:40 +0000)
committerutx@penguin.cz <utx@penguin.cz>
Sun, 29 Aug 2010 23:40:26 +0000 (23:40 +0000)
recipes/udev/files/udev-compat-wrapper-patch
recipes/udev/udev.inc
recipes/udev/udev_151.bb
recipes/udev/udev_154.bb

index a3e312d..c90d05a 100644 (file)
@@ -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"
index e6aad4b..7502094 100644 (file)
@@ -14,7 +14,7 @@ SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
            file://init \
           file://udev-compat-wrapper-patch"
 
-INC_PR = "r28"
+INC_PR = "r29"
 
 inherit update-rc.d autotools pkgconfig
 
index 038fec7..8423ff4 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 the hotplug package and requires a kernel not older than 2.6.12."
 LICENSE = "GPLv2+"
 
-PR = "r15"
+PR = "r16"
 
 # Untested
 DEFAULT_PREFERENCE = "-1"
index 6698566..e4dc48b 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 the hotplug package and requires a kernel not older than 2.6.12."
 LICENSE = "GPLv2+"
 
-PR = "r2"
+PR = "r3"
 
 # Untested
 DEFAULT_PREFERENCE = "-1"