Misc: Fix uname being run 3 times on iOS

This commit is contained in:
Dylan Araps 2016-11-06 20:34:51 +11:00
parent c607101099
commit 29b7fd589e
1 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ getmodel() {
"Mac OS X") model="$(sysctl -n hw.model)" ;; "Mac OS X") model="$(sysctl -n hw.model)" ;;
"iPhone OS") "iPhone OS")
case "${ios_model:-$(uname -m)}" in case "${ios_model:="$(uname -m)"}" in
"iPad1,1") model="iPad" ;; "iPad1,1") model="iPad" ;;
"iPad2,"[1-4]) model="iPad2" ;; "iPad2,"[1-4]) model="iPad2" ;;
"iPad3,"[1-3]) model="iPad3" ;; "iPad3,"[1-3]) model="iPad3" ;;
@ -772,7 +772,7 @@ getcpu() {
;; ;;
"iPhone OS") "iPhone OS")
case "${ios_model:-$(uname -m)}" in case "${ios_model:="$(uname -m)"}" in
"iPhone1,"[1-2] | "iPod1,1") cpu="Samsung S5L8900 (1) @ 412MHz" ;; "iPhone1,"[1-2] | "iPod1,1") cpu="Samsung S5L8900 (1) @ 412MHz" ;;
"iPhone2,1") cpu="Samsung S5PC100 (1) @ 600MHz" ;; "iPhone2,1") cpu="Samsung S5PC100 (1) @ 600MHz" ;;
"iPhone3,"[1-3] | "iPod4,1") cpu="Apple A4 (1) @ 800MHz" ;; "iPhone3,"[1-3] | "iPod4,1") cpu="Apple A4 (1) @ 800MHz" ;;
@ -994,7 +994,7 @@ getgpu() {
;; ;;
"iPhone OS") "iPhone OS")
case "${ios_model:-"$(uname -m)"}" in case "${ios_model:="$(uname -m)"}" in
"iPhone1,"[1-2]) gpu="PowerVR MBX Lite 3D" ;; "iPhone1,"[1-2]) gpu="PowerVR MBX Lite 3D" ;;
"iPhone5,"[1-4]) gpu="PowerVR SGX543MP3" ;; "iPhone5,"[1-4]) gpu="PowerVR SGX543MP3" ;;
"iPhone8,"[1-4]) gpu="PowerVR GT7600" ;; "iPhone8,"[1-4]) gpu="PowerVR GT7600" ;;