
16 Dec
2020
16 Dec
'20
11:58 a.m.
- grep -q -w hypervisor /proc/cpuinfo + grep -q -w hypervisor /proc/cpuinfo && return 1
Are you sure? return 1 means false for shell.
If grep success, return 1 means it's a physical machine, return 0 means vm Thanks, Zhangyu
+ return 0 fi }
-- 2.23.0