Merge pull request #1188 from konimex/arm
CPU [Linux/ARM]: Use Hardware field directly
This commit is contained in:
commit
e8939d58cf
10
neofetch
10
neofetch
|
@ -1805,13 +1805,9 @@ get_cpu() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
cpu="$(awk -F ': | @' '/model name|Processor|^cpu model|chip type|^cpu type/ {
|
cpu="$(awk -F ': | @' \
|
||||||
printf $2;
|
'/model name|Hardware|Processor|^cpu model|chip type|^cpu type/ {
|
||||||
exit
|
printf $2; exit}' "$cpu_file")"
|
||||||
}' "$cpu_file")"
|
|
||||||
|
|
||||||
[[ "$cpu" == *"processor rev"* ]] && \
|
|
||||||
cpu="$(awk -F':' '/Hardware/ {print $2; exit}' "$cpu_file")"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue