forked from ungleich-public/cdist
parent
5213f343c0
commit
ed55d01b35
1 changed files with 14 additions and 0 deletions
|
@ -56,6 +56,20 @@ if [ -r /proc/cpuinfo ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -r /sys/class/dmi/id/sys_vendor ]; then
|
||||||
|
if grep -q -i 'qemu' /sys/class/dmi/id/sys_vendor; then
|
||||||
|
echo "virtual_by_kvm"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -r /sys/class/dmi/id/chassis_vendor ]; then
|
||||||
|
if grep -q -i 'qemu' /sys/class/dmi/id/chassis_vendor; then
|
||||||
|
echo "virtual_by_kvm"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
echo "virtual_by_unknown"
|
echo "virtual_by_unknown"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue