Commit 5ef92d59 authored by Joe Holden's avatar Joe Holden

Fix indent, detect KVm vs QEMU on OpenBSD

parent bef22df8
......@@ -413,12 +413,12 @@ getvirt() {
VIRT=`detectvirt "${tmp}"`
fi
fi
if [ "${VIRT}" = "qemu" ]; then
tmp=`dmesg | grep -ciF 'Booting paravirtualized kernel on KVM'`
if [ "${tmp}" = "1" ]; then
VIRT=kvm
if [ "${VIRT}" = "qemu" ]; then
tmp=`dmesg | grep -ciF 'Booting paravirtualized kernel on KVM'`
if [ "${tmp}" = "1" ]; then
VIRT=kvm
fi
fi
fi
elif [ "${OS}" = "FreeBSD" -o "${OS}" = "OpenBSD" -o "${OS}" = "NetBSD" ]; then
if [ "${OS}" = "FreeBSD" ]; then
tmp=`sysctl -n hw.hv_vendor 2>/dev/null`
......@@ -432,6 +432,10 @@ getvirt() {
VIRT=`detectvirt "${tmp}"`
fi
fi
if [ "${OS}" = "OpenBSD" ]; then
tmp=`dmesg | grep pvbus0 | awk '{print $4}'`
VIRT=`detectvirt "${tmp}"`
fi
if [ "${VIRT}" = "none" ]; then
tmp=`sysctl -n hw.product 2>/dev/null`
VIRT=`detectvirt "${tmp}"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment