git.annexia.org
/
virt-what.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add UML support.
[virt-what.git]
/
virt-what.in
diff --git
a/virt-what.in
b/virt-what.in
index
cc61aae
..
b49994b
100644
(file)
--- a/
virt-what.in
+++ b/
virt-what.in
@@
-87,6
+87,12
@@
if [ -d /proc/vz -a ! -d /proc/bc ]; then
echo openvz
fi
echo openvz
fi
+# Check for UML.
+
+if grep -q 'UML' /proc/cpuinfo; then
+ echo uml
+fi
+
# To tell if it is Xen and KVM HVM (fully virtualized) we can use this
# helper C program.
# To tell if it is Xen and KVM HVM (fully virtualized) we can use this
# helper C program.