[PR] dylanaraps/neofetch#2005 from alyxferrari - Add recognition for Hackintosh VMs

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2005
Thanks to @alyxferrari

Co-authored-by: Alyx Ferrari <rubiquikyt@gmail.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-31 16:19:12 -04:00
commit 186b059459

View file

@ -1284,7 +1284,7 @@ get_model() {
;;
"Mac OS X"|"macOS")
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC") != "" ]]; then
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC" -e "Lilu") != "" ]]; then
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
else
if [[ $osx_version =~ "10.4" || $osx_version =~ "10.5" ]]; then