git.annexia.org
/
virt-what.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcc68d3
)
Add UML support.
author
Laurent Léonard
<laurent@open-minds.org>
Fri, 7 Aug 2009 13:22:54 +0000
(15:22 +0200)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Mon, 10 Aug 2009 08:13:36 +0000
(09:13 +0100)
virt-what.in
patch
|
blob
|
history
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
+# 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.