mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-06-02 21:45:25 -05:00
add loongarch64 cpu support
Signed-off-by: Han Gao <gaohan@uniontech.com>
This commit is contained in:
parent
ccd5d9f526
commit
d876efec64
4
neofetch
4
neofetch
|
|
@ -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/ {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user