[PR] dylanaraps/neofetch#2140 from Rabenda - add loongarch64 cpu support

Upstream PR: https://github.com/dylanaraps/neofetch/pull/2140
Thanks to @Rabenda

Co-authored-by: Han Gao <gaohan@uniontech.com>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-07-30 17:46:28 -04:00
commit bcb179101a

View file

@ -2231,6 +2231,10 @@ get_cpu() {
[[ -z "$cpu" ]] && cpu="$(awk -F':' '/family/ {printf $2; exit}' "$cpu_file")"
;;
"loongarch64")
cpu="$(awk -F':' '/Model/ {print $2; exit}' "$cpu_file")"
;;
*)
cpu="$(awk -F '\\s*: | @' \
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {