[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:
@@ -1284,7 +1284,7 @@ get_model() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X"|"macOS")
|
"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))"
|
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||||
else
|
else
|
||||||
if [[ $osx_version =~ "10.4" || $osx_version =~ "10.5" ]]; then
|
if [[ $osx_version =~ "10.4" || $osx_version =~ "10.5" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user