Update function check_virt (#121)

Adjusted to recognize 'KVM' when 'sys_manu' contains 'QEMU'.
(Detection was failing on BuyVM.net's KVM VPS)
This commit is contained in:
vvto33 2024-04-17 17:16:00 +09:00 committed by GitHub
parent 1050224c16
commit 6711d6e2e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,6 +159,8 @@ check_virt() {
virt="KVM"
elif [[ "${sys_product}" == *KVM* ]]; then
virt="KVM"
elif [[ "${sys_manu}" == *QEMU* ]]; then
virt="KVM"
elif [[ "${cname}" == *KVM* ]]; then
virt="KVM"
elif [[ "${cname}" == *QEMU* ]]; then