X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/5dcff401470fa5ebfdcd266d7c7e2e1c194a1629..06325acfa9b258fd7ab170880a4050fe8c4394b6:/Library/firmware.sh diff --git a/Library/firmware.sh b/Library/firmware.sh index 1bc6a414..afaae9a0 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 @@ -101,7 +101,8 @@ EOF echo "${gssc}" | sed -re ' /^ [^ ]* = [0-9.]*;$/ ! d; s/^ ([^ ]*) = ([0-9.]*);$/\1 \2/; - s/([A-Z])/-\L\1/g; s/^"([^ ]*)"/\1/; + s/([A-Z])/-\L\1/g; + s/^"([^ ]*)"/\1/; s/^-//; / 0$/ d; ' | while read -r name value; do case "${name}" in @@ -115,7 +116,7 @@ EOF esac; done fi - if [[ ${cpu} == arm ]]; then + if [[ ${cpu} == arm || ${cpu} == arm64 ]]; then os=ios else os=macosx @@ -138,7 +139,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