Check for udev on install.sh using udevinfo
PATCH 1/1 Check for udev on install.sh using udevinfo
Changes check for "udev", so that it works on debian sid (that does not have /sbin/udev anymore).
Signed-off-by Murillo F. Bernardes <[email protected]>
Signature · 2 lines
Murillo Fernandes Bernardes IBM Linux Technology Center
# HG changeset patch
# User [email protected]
# Node ID 54911570fae54eda445880eb7bf31926964717dd
# Parent 9bf6f907b3ff0261902f06d261f76c1bd12af9f5
Changes check for "udev", so that it works on debian (that does not have /sbin/udev anymore).
Tested on Debian Sid and FC4.
install.sh +4 -1
@@ -27,7 +27,10 @@ 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 + +UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/') + +if [ -x /sbin/udevd ] && [ ! -z $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/
tools/check/check_hotplug +3 -1
@@ -7,7 +7,9 @@ exit 1 } -if [ -x /sbin/udev ] && [ ! -z `/sbin/udev -V` ] && [ `/sbin/udev -V` -ge 059 ]; then +UDEV_VERSION=$(udevinfo -V | sed -e 's/^.*\s\([0-9]\+\)[^0-9]*/\1/') + +if [ -x /sbin/udevd ] && [ ! -z $UDEV_VERSION ] && [ $UDEV_VERSION -ge 059 ]; then exit 0 fi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel