]> git.saurik.com Git - cydia.git/commitdiff
Support arm64 CPU as iphoneos-arm in firmware.sh.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Dec 2013 08:25:22 +0000 (00:25 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 24 Dec 2013 08:25:22 +0000 (00:25 -0800)
Library/firmware.sh

index 1bc6a4141ad0e91086b042b87154b2c49241fdc1..d87a564e75cc7a7d573d18bdc3367ed0854f762f 100755 (executable)
@@ -8,7 +8,7 @@ shopt -s nullglob
 version=$(sw_vers -productVersion)
 cpu=$(uname -p)
 
-if [[ ${cpu} == arm ]]; then
+if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then
     data=/var/lib/dpkg
     model=hw.machine
     arch=iphoneos-arm
@@ -87,7 +87,7 @@ EOF
     fi
 # }}}
 
-    if [[ ${cpu} == arm ]]; then
+    if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then
         pseudo "firmware" "${version}" "almost impressive Apple frameworks" "iOS Firmware"
 
         while [[ 1 ]]; do
@@ -115,7 +115,7 @@ EOF
         esac; done
     fi
 
-    if [[ ${cpu} == arm ]]; then
+    if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then
         os=ios
     else
         os=macosx
@@ -138,7 +138,7 @@ EOF
 
 mv -f "${status}"{_,}
 
-if [[ ${cpu} == arm ]]; then
+if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then
     if [[ ! -h /User && -d /User ]]; then
         cp -afT /User /var/mobile
     fi && rm -rf /User && ln -s "/var/mobile" /User