From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH] correct test for /proc/xen/capabilities in xencommons runlevel script Date: Fri, 23 Jul 2010 23:05:28 +0200 Message-ID: <20100723210528.GA12967@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Correct test for /proc/xen/capabilities It is a file, not a directory. Signed-off-by: Olaf Hering --- 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