Changes check for "udev", so that it works on debian sid (that does not

have /sbin/udev anymore).

Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2005-11-21 17:03:21 +01:00
1 parent 9ba9cbdb3f
commit 20e3f38ade
2 files changed
+7 -2

No files matched your search

+4 -1
View File
@@ -27,7 +27,10 @@ echo "Installing Xen from '$src' to '$dst'..."
cp -fdRL $src/etc/init.d/* $dst/etc/init.d/
echo "All done."
if [ -x /sbin/udev ] && [ ! -z `/sbin/udev -V` ] && [ `/sbin/udev -V` -ge 059 ]; then
[ -x "$(which udevinfo)" ] && \
UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
cp -f $src/etc/udev/rules.d/*.rules $dst/etc/udev/rules.d/
else
cp -f $src/etc/hotplug/*.agent $dst/etc/hotplug/
+3 -1
View File
@@ -6,8 +6,10 @@ function error {
echo ' *** Check for the hotplug scripts (hotplug) FAILED'
exit 1
}
[ -x "$(which udevinfo)" ] && \
UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/')
if [ -x /sbin/udev ] && [ ! -z `/sbin/udev -V` ] && [ `/sbin/udev -V` -ge 059 ]; then
if [ -n "$UDEV_VERSION" ] && [ $UDEV_VERSION -ge 059 ]; then
exit 0
fi
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.