ia64/xen-unstable

view tools/check/check_udev @ 16855:bcae9d2cc2f8

tools/check: Add explicit include path for funcs.sh.

When the current directory is not in $PATH,
then the patch fixes the following errors:

Checking check_brctl: .: funcs.sh: not found
Checking check_crypto_lib: .: funcs.sh: not found
Checking check_curl: .: funcs.sh: not found
Checking check_iproute: .: funcs.sh: not found
Checking check_python: .: funcs.sh: not found
Checking check_python_xml: .: funcs.sh: not found
Checking check_udev: .: funcs.sh: not found
Checking check_xml2: .: funcs.sh: not found
Checking check_zlib_lib: .: funcs.sh: not found

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jan 23 11:21:35 2008 +0000 (2008-01-23)
parents 6ba04ec03dec
children edfdeb150f27
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_or_fail udevinfo
12 [ "`udevinfo -V | awk '{print $NF}'`" -ge 59 ] 2>/dev/null || \
13 has hotplug || \
14 fail "udev is too old, upgrade to version 59 or later"
15 ;;
16 *)
17 fail "unknown OS"
18 ;;
19 esac