Add UML support.
authorLaurent Léonard <laurent@open-minds.org>
Fri, 7 Aug 2009 13:22:54 +0000 (15:22 +0200)
committerRichard Jones <rjones@trick.home.annexia.org>
Mon, 10 Aug 2009 08:13:36 +0000 (09:13 +0100)
virt-what.in

index cc61aae..b49994b 100644 (file)
@@ -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.