Commit 2b4ec292 authored by Georgi Kodinov's avatar Georgi Kodinov

merged 5.0-bugteam->5.1-bugteam

parents 3e642d15 55f514ad
...@@ -47,8 +47,13 @@ check_cpu () { ...@@ -47,8 +47,13 @@ check_cpu () {
model_name=`sysctl -n hw.model` model_name=`sysctl -n hw.model`
;; ;;
Darwin) Darwin)
cpu_family=`sysctl -n machdep.cpu.vendor`
model_name=`sysctl -n machdep.cpu.brand_string`
if [ -z "$cpu_family" -o -z "$model_name" ]
then
cpu_family=`uname -p` cpu_family=`uname -p`
model_name=`machine` model_name=`machine`
fi
;; ;;
*) *)
cpu_family=`uname -m`; cpu_family=`uname -m`;
......
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