mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
buikd: Fix the detection of udev with udevadm version < 128
Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
This commit is contained in:
1 parent
89c6cf58e8
commit
773e0fb2ff
3 files changed
+10
-6
No files matched your search
+2
-1
@@ -30,7 +30,8 @@ echo "Installing Xen from '$src' to '$dst'..."
|
||||
[ -x "$(which udevinfo)" ] && \
|
||||
UDEV_VERSION=$(udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
|
||||
|
||||
[ -z "$UDEV_VERSION" -a -x /sbin/udevadm ] && UDEV_VERSION=$(/sbin/udevadm -V)
|
||||
[ -z "$UDEV_VERSION" -a -x /sbin/udevadm ] && \
|
||||
UDEV_VERSION=$(/sbin/udevadm info -V | awk '{print $NF}')
|
||||
|
||||
if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
|
||||
echo " - installing for udev-based system"
|
||||
|
||||