[TOOLS] Rename chekc_hotplug to check_udev and fix permissions.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-11-15 14:59:57 +00:00
1 parent 2e0874d780
commit 9b4ed67d25
1 file changed
+1 -1
+16
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.