mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
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:
parent
1050224c16
commit
6711d6e2e9
2
bench.sh
2
bench.sh
@ -159,6 +159,8 @@ check_virt() {
|
|||||||
virt="KVM"
|
virt="KVM"
|
||||||
elif [[ "${sys_product}" == *KVM* ]]; then
|
elif [[ "${sys_product}" == *KVM* ]]; then
|
||||||
virt="KVM"
|
virt="KVM"
|
||||||
|
elif [[ "${sys_manu}" == *QEMU* ]]; then
|
||||||
|
virt="KVM"
|
||||||
elif [[ "${cname}" == *KVM* ]]; then
|
elif [[ "${cname}" == *KVM* ]]; then
|
||||||
virt="KVM"
|
virt="KVM"
|
||||||
elif [[ "${cname}" == *QEMU* ]]; then
|
elif [[ "${cname}" == *QEMU* ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user