summaryrefslogtreecommitdiff
path: root/Library
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-12-24 00:25:22 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2013-12-24 00:25:22 -0800
commit0ca262bb9f944ea517b874260aa26a56fad4b599 (patch)
tree2ad52362f1961e22410fe30ed05880919b00bc2e /Library
parent86a333c657dbfca4af4d88dc639a04460de79194 (diff)
Support arm64 CPU as iphoneos-arm in firmware.sh.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/firmware.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/firmware.sh b/Library/firmware.sh
index 1bc6a41..d87a564 100755
--- a/Library/firmware.sh
+++ b/Library/firmware.sh
@@ -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