Fix CPU name on android
This commit is contained in:
parent
76cc33f95f
commit
bd7ebdfe4b
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -637,7 +637,7 @@ getcpu() {
|
|||
case "$os" in
|
||||
"Linux" | "Windows")
|
||||
# Get cpu name
|
||||
cpu="$(awk -F ': | @' '/model name/ {printf $2; exit}' /proc/cpuinfo)"
|
||||
cpu="$(awk -F ': | @' '/model name|Processor/ {printf $2; exit}' /proc/cpuinfo)"
|
||||
|
||||
# Get cpu speed
|
||||
if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then
|
||||
|
|
Loading…
Reference in a new issue