mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-06-06 23:40:26 -05:00
CPU [Linux/ARM]: Use Hardware field directly
This commit is contained in:
parent
762d239c32
commit
60d3aa3f10
10
neofetch
10
neofetch
|
|
@ -1805,13 +1805,9 @@ get_cpu() {
|
|||
;;
|
||||
|
||||
*)
|
||||
cpu="$(awk -F ': | @' '/model name|Processor|^cpu model|chip type|^cpu type/ {
|
||||
printf $2;
|
||||
exit
|
||||
}' "$cpu_file")"
|
||||
|
||||
[[ "$cpu" == *"processor rev"* ]] && \
|
||||
cpu="$(awk -F':' '/Hardware/ {print $2; exit}' "$cpu_file")"
|
||||
cpu="$(awk -F ': | @' \
|
||||
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
|
||||
printf $2; exit}' "$cpu_file")"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user