Unverified Commit e8939d58 authored by black's avatar black Committed by GitHub

Merge pull request #1188 from konimex/arm

CPU [Linux/ARM]: Use Hardware field directly
parents 762d239c 60d3aa3f
...@@ -1805,13 +1805,9 @@ get_cpu() { ...@@ -1805,13 +1805,9 @@ get_cpu() {
;; ;;
*) *)
cpu="$(awk -F ': | @' '/model name|Processor|^cpu model|chip type|^cpu type/ { cpu="$(awk -F ': | @' \
printf $2; '/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
exit printf $2; exit}' "$cpu_file")"
}' "$cpu_file")"
[[ "$cpu" == *"processor rev"* ]] && \
cpu="$(awk -F':' '/Hardware/ {print $2; exit}' "$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