Changed case

This commit is contained in:
Muhammad Herdiansyah 2016-08-30 07:26:13 +07:00
parent 7889c093b2
commit b3dcfe820c
1 changed files with 2 additions and 4 deletions

View File

@ -644,10 +644,8 @@ getcpu() {
"Linux" | "Windows")
# Get cpu name
case "$distro" in
"Android"*)
cpu="$(getprop ro.product.board)" ;;
*)
cpu="$(awk -F ': | @' '/model name|Processor/ {printf $2; exit}' /proc/cpuinfo)" ;;
"Android"*) cpu="$(getprop ro.product.board)" ;;
*) cpu="$(awk -F ': | @' '/model name|Processor/ {printf $2; exit}' /proc/cpuinfo)" ;;
esac
# Get cpu speed