]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
xendomains initscript: test for privcmd char device
authorDoug Goldstein <cardoe@cardoe.com>
Tue, 1 Dec 2015 19:27:55 +0000 (13:27 -0600)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 2 Dec 2015 15:24:23 +0000 (15:24 +0000)
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>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/xendomains.in

index 0603842a87bec27dc4a67fbbf2dd3c54daba5c9d..686f061cac694d56a35a397ca1b6ac4a42d6fafa 100644 (file)
@@ -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