[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] correct test for /proc/xen/capabilities in xencommons runlevel script


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Fri, 23 Jul 2010 23:05:28 +0200
  • Delivery-date: Fri, 23 Jul 2010 14:06:24 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.