buikd: Fix the detection of udev with udevadm version < 128

Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
This commit is contained in:
Keir Fraser committed 2009-07-02 11:31:00 +01:00
1 parent 89c6cf58e8
commit 773e0fb2ff
3 files changed
+10 -6

No files matched your search

+2 -1
View File
@@ -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"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.