aboutsummaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-07-02 11:31:00 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-07-02 11:31:00 +0100
commit773e0fb2ff4ea593c68d75f7e87560e4ff727ccb (patch)
tree3d93e82865deb4d04f9f42a4481db454bb6ecd75 /install.sh
parent89c6cf58e8adffa03ae33da6af2a5590a5d03054 (diff)
downloadxen-773e0fb2ff4ea593c68d75f7e87560e4ff727ccb.tar.gz
xen-773e0fb2ff4ea593c68d75f7e87560e4ff727ccb.tar.bz2
xen-773e0fb2ff4ea593c68d75f7e87560e4ff727ccb.zip
buikd: Fix the detection of udev with udevadm version < 128
Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 77d24087f2..691214e638 100755
--- a/install.sh
+++ b/install.sh
@@ -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"