Skip to content

Commit

Permalink
add loongarch64 cpu support
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR authored Jun 26, 2022
1 parent ccd5d9f commit d876efe
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 @@ -2206,6 +2206,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 d876efe

Please sign in to comment.