add loongarch64 cpu support
Signed-off-by: Han Gao <gaohan@uniontech.com>
This commit is contained in:
@@ -2206,6 +2206,10 @@ get_cpu() {
|
|||||||
[[ -z "$cpu" ]] && cpu="$(awk -F':' '/family/ {printf $2; exit}' "$cpu_file")"
|
[[ -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*: | @' \
|
cpu="$(awk -F '\\s*: | @' \
|
||||||
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
|
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
|
||||||
|
|||||||
Reference in New Issue
Block a user