Skip to contentSkip to conversation

udev path failure can fail test incorrectly

PATCH New Nivedita Singhvi 1 participant 1 message Nov 14, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev path failure can fail test incorrectly

This cleans up an install issue for udev.

# HG changeset patch
# User nivedita@phaedrus
# Node ID d46b43fb84846e15941a7a58c37ca1373918e464 # Parent 995e94c4802e5c0376b0483f3b2473a8f7d7808e If /sbin/ isn't in path, install.sh will erroneously fail and won't install udev rules in all the cases it should.

install.sh Mon Nov 14 05:59:48 2005 renamed from install.sh Fri Nov 11 18:11:13 2005 +1 -1
diff -r 995e94c4802e -r d46b43fb8484 install.sh
@@ -27,7 +27,7 @@
 cp -fdRL $src/etc/init.d/* $dst/etc/init.d/
 echo "All done."
 
-if [ -x /sbin/udev ] && [ ! -z `udev -V` ] && [ `/sbin/udev -V` -ge 059]; then
+if [ -x /sbin/udev ] && [ ! -z `/sbin/udev -V` ] && [ `/sbin/udev -V` -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/

# HG changeset patch
# User nivedita@phaedrus
# Node ID d46b43fb84846e15941a7a58c37ca1373918e464 # Parent 995e94c4802e5c0376b0483f3b2473a8f7d7808e If /sbin/ isn't in path, install.sh will erroneously fail and won't install udev rules in all the cases it should.

install.sh +1 -1
diff -r 995e94c4802e -r d46b43fb8484 install.sh
@@ -27,7 +27,7 @@
 cp -fdRL $src/etc/init.d/* $dst/etc/init.d/
 echo "All done."
 
-if [ -x /sbin/udev ] && [ ! -z `udev -V` ] && [ `/sbin/udev -V` -ge 059 ]; then
+if [ -x /sbin/udev ] && [ ! -z `/sbin/udev -V` ] && [ `/sbin/udev -V` -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/

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel