mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[TOOLS] Rename chekc_hotplug to check_udev and fix permissions.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
2e0874d780
commit
9b4ed67d25
1 file changed
+1
-1
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
# CHECK-INSTALL
|
||||
|
||||
function error {
|
||||
echo
|
||||
echo ' *** Check for udev/hotplug FAILED'
|
||||
exit 1
|
||||
}
|
||||
[ -x "$(which udevinfo)" ] && \
|
||||
UDEV_VERSION=$(udevinfo -V | sed -e 's/^[^0-9]* \([0-9]\{1,\}\)[^0-9]\{0,\}/\1/')
|
||||
|
||||
if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
which hotplug 1>/dev/null 2>&1 || error
|
||||