ia64/xen-unstable

view tools/check/check_hotplug @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
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