All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nivedita Singhvi <nsnix@comcast.net>
To: xen--devel <xen-devel@lists.xensource.com>
Subject: [PATCH] udev path failure can fail test incorrectly
Date: Sun, 13 Nov 2005 22:11:11 -0800	[thread overview]
Message-ID: <43782A7F.6070000@comcast.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

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/



[-- Attachment #2: udevpath.patch --]
[-- Type: text/plain, Size: 767 bytes --]

# 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/

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2005-11-14  6:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43782A7F.6070000@comcast.net \
    --to=nsnix@comcast.net \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.