Fix CPU name on android

This commit is contained in:
Dylan Araps 2016-08-28 11:47:56 +10:00
parent 76cc33f95f
commit bd7ebdfe4b

View file

@ -637,7 +637,7 @@ getcpu() {
case "$os" in case "$os" in
"Linux" | "Windows") "Linux" | "Windows")
# Get cpu name # 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 # Get cpu speed
if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then if [ -d "/sys/devices/system/cpu/cpu0/cpufreq" ]; then