general: Faster grep

This commit is contained in:
Dylan Araps 2018-10-17 14:53:54 +11:00
parent a37ee9a833
commit caea0f059c

View file

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