mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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>
15 lines
257 B
Bash
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
|