From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nivedita Singhvi Subject: [PATCH] udev path failure can fail test incorrectly Date: Sun, 13 Nov 2005 22:11:11 -0800 Message-ID: <43782A7F.6070000@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070202030400080405060708" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen--devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------070202030400080405060708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit This cleans up an install issue for udev. Signed-off-by: Nivedita Singhvi (niv@us.ibm.com) # 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. diff -r 995e94c4802e -r d46b43fb8484 install.sh --- a/install.sh Fri Nov 11 18:11:13 2005 +++ b/install.sh Mon Nov 14 05:59:48 2005 @@ -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/ --------------070202030400080405060708 Content-Type: text/plain; name="udevpath.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="udevpath.patch" # 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. diff -r 995e94c4802e -r d46b43fb8484 install.sh --- a/install.sh Fri Nov 11 18:11:13 2005 +++ b/install.sh Mon Nov 14 05:59:48 2005 @@ -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/ --------------070202030400080405060708 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------070202030400080405060708--