ia64/xen-unstable

view tools/check/check_hotplug @ 8964:8946b6dcd49e

Fix x86_64 Xen build.

event_callback_cs and failsafe_callback_cs are x86_32 only.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Wed Feb 22 17:26:39 2006 +0000 (2006-02-22)
parents 5ae89ce67486
children 66e16c4685f5
line source
1 #!/bin/bash
2 # CHECK-INSTALL
4 function error {
5 echo
6 echo ' *** Check for the hotplug scripts (hotplug) FAILED'
7 exit 1
8 }
9 [ -x "$(which udevinfo)" ] && \
10 UDEV_VERSION=$(udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
12 if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
13 exit 0
14 fi
16 which hotplug 1>/dev/null 2>&1 || error