Unverified Commit 0b266c0e authored by black's avatar black Committed by GitHub

Merge pull request #1240 from lightful/pr_cpuinfo

give precedence to "Hardware" entry in /proc/cpuinfo
parents cc78503b c5f3f762
...@@ -1816,9 +1816,9 @@ get_cpu() { ...@@ -1816,9 +1816,9 @@ get_cpu() {
;; ;;
*) *)
cpu="$(awk -F ': | @' \ cpu="$(awk -F '\\s*: | @' \
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ { '/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
printf $2; exit}' "$cpu_file")" cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' "$cpu_file")"
;; ;;
esac esac
......
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