]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
xen: load modules if /sys/hypervisor/type == xen.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Jul 2011 14:45:15 +0000 (10:45 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 26 Jul 2011 14:45:15 +0000 (10:45 -0400)
root_image/tools/load_xen_modules/load_xen_modules

index 67b07f1fe904764f59805aa7cd370a0090eeb09b..77e2705c5aa39c4edf16b541929edfb427490528 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/bash
 
-/usr/bin/xen-detect -P
-if [ $? == 0 ]; then
+if [ `cat /sys/hypervisor/type` == "xen" ]; then
        modprobe xenbus_probe_frontend
        modprobe xen-kbdfront
        modprobe xen-fbfront