All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Goldstein <cardoe@cardoe.com>
To: xen-devel@lists.xen.org
Cc: Ian Jackson <ian.jackson@eu.citrix.com>,
	Wei Liu <wei.liu2@citrix.com>, Doug Goldstein <cardoe@cardoe.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: [PATCH 4/4] xendomains initscript: test for privcmd char device
Date: Tue, 24 Nov 2015 12:47:35 -0600	[thread overview]
Message-ID: <1448390855-13505-4-git-send-email-cardoe@cardoe.com> (raw)
In-Reply-To: <1448390855-13505-1-git-send-email-cardoe@cardoe.com>

Allow the init script to continue if either the character device or the
proc file is available.

CC: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
CC: Ian Campbell <ian.campbell@citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
---
 tools/hotplug/Linux/xendomains.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/xendomains.in b/tools/hotplug/Linux/xendomains.in
index 0603842..686f061 100644
--- a/tools/hotplug/Linux/xendomains.in
+++ b/tools/hotplug/Linux/xendomains.in
@@ -45,7 +45,7 @@ fi
 
 # Correct exit code would probably be 5, but it's enough
 # if xend complains if we're not running as privileged domain
-if ! [ -e /proc/xen/privcmd ]; then
+if ! [ -e /dev/xen/privcmd ] || [ -e /proc/xen/privcmd ]; then
 	exit 0
 fi
 
-- 
2.4.10

  parent reply	other threads:[~2015-11-24 18:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24 18:47 [PATCH 1/4] libxc: prefer using privcmd character device Doug Goldstein
2015-11-24 18:47 ` [PATCH 2/4] update outdated header comment on privcmd.h Doug Goldstein
2015-11-24 18:52   ` Ian Jackson
2015-11-24 18:47 ` [PATCH 3/4] gdbsx: prefer privcmd character device Doug Goldstein
2015-11-24 18:53   ` Ian Jackson
2015-11-24 19:19     ` Doug Goldstein
2015-11-24 20:11       ` Doug Goldstein
2015-11-25 11:14       ` Ian Jackson
2015-11-25 11:13     ` Ian Campbell
2015-11-24 18:47 ` Doug Goldstein [this message]
2015-11-24 18:53   ` [PATCH 4/4] xendomains initscript: test for privcmd char device Ian Jackson
2015-11-24 18:52 ` [PATCH 1/4] libxc: prefer using privcmd character device Ian Jackson

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=1448390855-13505-4-git-send-email-cardoe@cardoe.com \
    --to=cardoe@cardoe.com \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /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.