ia64/xen-unstable

changeset 13402:3b4ddf62f657

Fix udev check.

Quiesce 'which' invocation, and allow expanding variables in error
message.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Fri Jan 12 14:32:41 2007 +0000 (2007-01-12)
parents 9c6531217c7c
children 3f419d160647
files tools/check/check_udev
line diff
     1.1 --- a/tools/check/check_udev	Fri Jan 12 14:22:28 2007 +0000
     1.2 +++ b/tools/check/check_udev	Fri Jan 12 14:32:41 2007 +0000
     1.3 @@ -11,7 +11,7 @@ OpenBSD|NetBSD|FreeBSD)
     1.4  Linux)
     1.5  	TOOL="udevinfo"
     1.6  	UDEV_VERSION="0"
     1.7 -	test -x "$(which ${TOOL})" && \
     1.8 +	test -x "$(which ${TOOL} 2>/dev/null)" && \
     1.9  		UDEV_VERSION=$(${TOOL} -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
    1.10  	if test "${UDEV_VERSION}" -ge 059; then
    1.11  		RC=0
    1.12 @@ -28,7 +28,7 @@ esac
    1.13  
    1.14  if test ${RC} -ne 0; then
    1.15  	echo
    1.16 -	echo ' *** Check for ${TOOL} FAILED'
    1.17 +	echo " *** Check for ${TOOL} FAILED"
    1.18  fi
    1.19  
    1.20  exit ${RC}