use lscpu to get cpu name on arm architecture
This commit is contained in:
parent
ee8d01ed2a
commit
b9e713f9e2
1 changed files with 4 additions and 0 deletions
4
neofetch
4
neofetch
|
@ -2206,6 +2206,10 @@ get_cpu() {
|
|||
[[ -z "$cpu" ]] && cpu="$(awk -F':' '/family/ {printf $2; exit}' "$cpu_file")"
|
||||
;;
|
||||
|
||||
"arm"* | "aarch64")
|
||||
cpu="$(lscpu | grep "Vendor ID" | sed "s/.*: *//g") $(lscpu | grep "Model name" | sed "s/.*: *//g")"
|
||||
;;
|
||||
|
||||
*)
|
||||
cpu="$(awk -F '\\s*: | @' \
|
||||
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
|
||||
|
|
Loading…
Reference in a new issue