From: willem van de velde Date: Tue, 22 Oct 2019 10:58:01 +0000 (+0100) Subject: Fix incorrect detection of MS Surfacebook 2 as a virtual machine. X-Git-Tag: v1.21~5 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=3aa4ad0f81c35a56960871b68731b6e948d95f56;p=virt-what.git Fix incorrect detection of MS Surfacebook 2 as a virtual machine. --- diff --git a/virt-what.in b/virt-what.in index 9eafa05..a61ce91 100644 --- a/virt-what.in +++ b/virt-what.in @@ -132,7 +132,8 @@ fi # The negative check for cpuid is to distinguish this from Hyper-V # which also has the same manufacturer string in the SM-BIOS data. if [ "$cpuid" != "Microsoft Hv" ] && - echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then + echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation' && + echo "$dmi" | grep -q 'Product Name: Virtual Machine'; then echo virtualpc fi