Skip to contentSkip to conversation

correct test for /proc/xen/capabilities in xencommons runlevel script

PATCH New Olaf Hering 1 participant 1 message Jul 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 correct test for /proc/xen/capabilities in xencommons runlevel script

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

---
 tools/hotplug/Linux/init.d/xencommons |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/hotplug/Linux/init.d/xencommons +1 -1
@@ -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