X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=virt-what.in;h=870c09b0bf79938c3124585118f337d37b309b5e;hb=97682ffb6f52cd89e5c95e3f546035224c8e4f05;hp=a0f7406ceeed2c782f86398f999ba2bdeda402e9;hpb=4216f66a14702bf1a430a70be1be46d27b8b67c9;p=virt-what.git diff --git a/virt-what.in b/virt-what.in index a0f7406..870c09b 100644 --- a/virt-what.in +++ b/virt-what.in @@ -100,8 +100,10 @@ if [ "$cpuid" = "Microsoft Hv" ]; then fi # Check for VirtualPC. - -if echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then +# 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 virtualpc fi