|
|
|
@ -552,7 +552,7 @@ getcpu () { |
|
|
|
cpu="$(sysctl -n machdep.cpu.brand_string)" |
|
|
|
cpu="$(sysctl -n machdep.cpu.brand_string)" |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
*"BSD") |
|
|
|
"OpenBSD") |
|
|
|
cpu="$(sysctl -n hw.model)" |
|
|
|
cpu="$(sysctl -n hw.model)" |
|
|
|
cpu=${cpu/ @*/} |
|
|
|
cpu=${cpu/ @*/} |
|
|
|
cpu=${cpu// /} |
|
|
|
cpu=${cpu// /} |
|
|
|
@ -565,6 +565,10 @@ getcpu () { |
|
|
|
cpu="$cpu @ ${speed}GHz" |
|
|
|
cpu="$cpu @ ${speed}GHz" |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*"BSD") |
|
|
|
|
|
|
|
cpu="$(sysctl -n hw.model)" |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
"Windows") |
|
|
|
"Windows") |
|
|
|
# Get cpu name |
|
|
|
# Get cpu name |
|
|
|
cpu="$(grep -F 'model name' /proc/cpuinfo)" |
|
|
|
cpu="$(grep -F 'model name' /proc/cpuinfo)" |
|
|
|
|