Model: Add support for Hackintosh
This commit is contained in:
parent
d63837c894
commit
0ff2807c75
1 changed files with 8 additions and 1 deletions
9
neofetch
9
neofetch
|
@ -242,7 +242,14 @@ get_model() {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X") model="$(sysctl -n hw.model)" ;;
|
"Mac OS X")
|
||||||
|
if [[ "$(kextstat | grep "FakeSMC")" != "" ]]; then
|
||||||
|
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||||
|
else
|
||||||
|
model="$(sysctl -n hw.model)"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
"iPhone OS")
|
"iPhone OS")
|
||||||
case "$machine_arch" in
|
case "$machine_arch" in
|
||||||
"iPad1,1") model="iPad" ;;
|
"iPad1,1") model="iPad" ;;
|
||||||
|
|
Loading…
Reference in a new issue