ia64/xen-unstable

view tools/check/check_udev @ 19835:edfdeb150f27

Fix buildsystem to detect udev > version 124

udev removed the udevinfo symlink from versions higher than 123 and
xen's build-system could not detect if udev is in place and has the
required version.

Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:02:37 2009 +0100 (2009-06-25)
parents bcae9d2cc2f8
children
line source
1 #!/bin/sh
2 # CHECK-INSTALL
4 . ./funcs.sh
6 case $OS in
7 OpenBSD|NetBSD|FreeBSD)
8 has_or_fail vnconfig
9 ;;
10 Linux)
11 has /sbin/udevadm && udevver=`/sbin/udevadm -V`
12 [ -z "$udevver" ] && has_or_fail udevinfo && \
13 udevver=`udevinfo -V | awk '{print $NF}'`
14 [ "$udevver" -ge 59 ] 2>/dev/null || \
15 has hotplug || \
16 fail "udev is too old, upgrade to version 59 or later"
17 ;;
18 *)
19 fail "unknown OS"
20 ;;
21 esac