Fix CPU name on android

This commit is contained in:
Dylan Araps 2016-08-28 11:47:56 +10:00
parent 76cc33f95f
commit bd7ebdfe4b
1 changed files with 1 additions and 1 deletions

View File

@ -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