Files
xen/tools/check/check_hotplug
T
kaf24@firebug.cl.cam.ac.uk 726081b63b Add installation of the udev rules if appropriate. With a normal 'make
install', the udev rules will be installed if udev version is >= 059;
otherwise, the hotplug rules get installed.

When 'make dist' is done, we set a variable so that both hotplug and
udev rules are installed into the dist tarball.  install.sh then takes
care of picking the proper rules.

Also changes the hotplug check to look for a proper udev version

Signed-off-by: Jeremy Katz <katzj@redhat.com>
2005-10-07 14:47:45 +01:00

15 lines
257 B
Bash

#!/bin/bash
# CHECK-INSTALL
function error {
echo
echo ' *** Check for the hotplug scripts (hotplug) FAILED'
exit 1
}
if [ -x /sbin/udev ] && [ ! -z `udev -V` ] && [ `udev -V` -ge 059 ]; then
exit 0
fi
which hotplug 1>/dev/null 2>&1 || error