ia64/xen-unstable

changeset 13054:2732b6ab217b

Fix check_udev in the case where udev is missing -- test's -a does not shortcut.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Fri Dec 15 09:50:33 2006 +0000 (2006-12-15)
parents c3425346188c
children c2fe2635e68b
files tools/check/check_udev
line diff
     1.1 --- a/tools/check/check_udev	Fri Dec 15 09:39:26 2006 +0000
     1.2 +++ b/tools/check/check_udev	Fri Dec 15 09:50:33 2006 +0000
     1.3 @@ -10,9 +10,10 @@ OpenBSD|NetBSD|FreeBSD)
     1.4  	;;
     1.5  Linux)
     1.6  	TOOL="udevinfo"
     1.7 +	UDEV_VERSION="0"
     1.8  	test -x "$(which ${TOOL})" && \
     1.9  		UDEV_VERSION=$(${TOOL} -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
    1.10 -	if test -n "${UDEV_VERSION}" -a ${UDEV_VERSION} -ge 059; then
    1.11 +	if test "${UDEV_VERSION}" -ge 059; then
    1.12  		RC=0
    1.13  	else
    1.14  		TOOL="hotplug"