Commit caea0f05 authored by Dylan Araps's avatar Dylan Araps

general: Faster grep

parent a37ee9a8
...@@ -1039,7 +1039,7 @@ get_model() { ...@@ -1039,7 +1039,7 @@ get_model() {
;; ;;
"Mac OS X") "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))" model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
else else
model="$(sysctl -n hw.model)" model="$(sysctl -n hw.model)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment