Merge pull request #1240 from lightful/pr_cpuinfo
give precedence to "Hardware" entry in /proc/cpuinfo
This commit is contained in:
commit
0b266c0e7b
4
neofetch
4
neofetch
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in New Issue