Improve Hackintosh detection
There is a new SMC emulator https://github.com/acidanthera/VirtualSMC
This commit is contained in:
parent
4d129b50c1
commit
3272dce4ed
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1039,7 +1039,7 @@ get_model() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
if [[ "$(kextstat | grep -F "FakeSMC")" != "" ]]; then
|
if [[ "$(kextstat | grep -E "FakeSMC|VirtualSMC")" != "" ]]; then
|
||||||
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||||
else
|
else
|
||||||
model="$(sysctl -n hw.model)"
|
model="$(sysctl -n hw.model)"
|
||||||
|
|
Loading…
Reference in a new issue