X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/36bb2ca28f46dfb1362e20da38cc51bac4ed821a..de3b1ab45842f7265fae101aae296d1a2d9b7ae6:/Library/firmware.sh?ds=sidebyside diff --git a/Library/firmware.sh b/Library/firmware.sh index a45fd218..3edf8d08 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -1,5 +1,7 @@ #!/bin/bash +# XXX: FIX THIS!! +architecture=iphoneos-arm version=$(sw_vers -productVersion) if grep '^Package: firmware$' /var/lib/dpkg/status >/dev/null; then @@ -8,6 +10,9 @@ if grep '^Package: firmware$' /var/lib/dpkg/status >/dev/null; then firmware= elif [[ ${line} == '' ]]; then unset firmware + elif [[ ${line} == Architecture:* && "${firmware+@}" ]]; then + echo "Architecture: ${architecture}" + continue elif [[ ${line} == Version:* && "${firmware+@}" ]]; then echo "Version: ${version}" continue @@ -24,7 +29,7 @@ Priority: required Section: System Installed-Size: 0 Maintainer: Jay Freeman (saurik) -Architecture: darwin-arm +Architecture: ${architecture} Version: ${version} Description: almost impressive Apple frameworks Name: iPhone Firmware