Skip to content

Commit

Permalink
[PR] dylanaraps#2140 from Rabenda - add loongarch64 cpu support
Browse files Browse the repository at this point in the history
Upstream PR: dylanaraps#2140
Thanks to @Rabenda

Co-authored-by: Han Gao <[email protected]>
  • Loading branch information
hykilpikonna and RevySR committed Jul 30, 2022
2 parents ac11649 + d876efe commit bcb1791
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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/ {
Expand Down

0 comments on commit bcb1791

Please sign in to comment.