Skip to content

Commit 17cc477

Browse files
malik1004xShaun Prince
authored andcommitted
perf(macos): Skip Hackintosh check on ARM64 Macs
Hackintosh detection works by grepping kexts, which takes ~150ms. Since Hackintosh on ARM is currently impossible, skip this check on arm64 architecture for a noticeable performance improvement. Cherry-picked from dylanaraps#2396
1 parent be158a0 commit 17cc477

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

neofetch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ get_model() {
12671267
;;
12681268

12691269
"Mac OS X"|"macOS"|"ravynOS")
1270-
if [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC") != "" ]]; then
1270+
if [ "$(arch)" != "arm64" ] && [[ $(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC") != "" ]]; then
12711271
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
12721272
else
12731273
model=$(sysctl -n hw.model)

0 commit comments

Comments
 (0)