[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:
commit
bcb179101a
1 changed files with 4 additions and 0 deletions
4
neofetch
4
neofetch
|
@ -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/ {
|
||||
|
|
Loading…
Reference in a new issue