All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] correct test for /proc/xen/capabilities in xencommons runlevel script
@ 2010-07-23 21:05 Olaf Hering
  0 siblings, 0 replies; only message in thread
From: Olaf Hering @ 2010-07-23 21:05 UTC (permalink / raw)
  To: xen-devel


Correct test for /proc/xen/capabilities
It is a file, not a directory.

Signed-off-by: Olaf Hering <olaf@aepfle.de>

---
 tools/hotplug/Linux/init.d/xencommons |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- xen-unstable.hg-4.1.21836.orig/tools/hotplug/Linux/init.d/xencommons
+++ xen-unstable.hg-4.1.21836/tools/hotplug/Linux/init.d/xencommons
@@ -26,7 +26,7 @@ shopt -s extglob
 
 if test "x$1" = xstart && \
      test -d /proc/xen && \
-   ! test -d /proc/xen/capabilities && \
+   ! test -f /proc/xen/capabilities && \
    ! grep '^xenfs ' /proc/mounts >/dev/null;
 then
 	mount -t xenfs xenfs /proc/xen

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-23 21:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23 21:05 [PATCH] correct test for /proc/xen/capabilities in xencommons runlevel script Olaf Hering

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.