diff options
author | Ewan Mellor <ewan@xensource.com> | 2006-12-15 09:50:33 +0000 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2006-12-15 09:50:33 +0000 |
commit | bb2c5572dc10b78d96dda2bdfce1543b52c6d753 (patch) | |
tree | 3bd15d44c82cd65fabb8ab2e027385c1b00aa21e /tools/check | |
parent | dc1408eb4fc39fd91b9abd7456a5685b3ddbaef9 (diff) | |
download | xen-bb2c5572dc10b78d96dda2bdfce1543b52c6d753.tar.gz xen-bb2c5572dc10b78d96dda2bdfce1543b52c6d753.tar.bz2 xen-bb2c5572dc10b78d96dda2bdfce1543b52c6d753.zip |
Fix check_udev in the case where udev is missing -- test's -a does not shortcut.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/check')
-rwxr-xr-x | tools/check/check_udev | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/check/check_udev b/tools/check/check_udev index b9ae056ce2..c84cb98029 100755 --- a/tools/check/check_udev +++ b/tools/check/check_udev @@ -10,9 +10,10 @@ OpenBSD|NetBSD|FreeBSD) ;; Linux) TOOL="udevinfo" + UDEV_VERSION="0" test -x "$(which ${TOOL})" && \ UDEV_VERSION=$(${TOOL} -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/') - if test -n "${UDEV_VERSION}" -a ${UDEV_VERSION} -ge 059; then + if test "${UDEV_VERSION}" -ge 059; then RC=0 else TOOL="hotplug" |