give precedence to "Hardware" entry in /proc/cpuinfo
This commit is contained in:
parent
cc78503b58
commit
c5f3f7626a
1 changed files with 2 additions and 2 deletions
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/ {
|
||||
printf $2; exit}' "$cpu_file")"
|
||||
cpu=$2; if ($1 == "Hardware") exit } END { print cpu }' "$cpu_file")"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue