]> git.saurik.com Git - cydia.git/blobdiff - Library/firmware.sh
Quick detour to get Cydia Safe Mode working.
[cydia.git] / Library / firmware.sh
index a45fd2182cdf750d81b9697b151985c0edd79305..3edf8d084948ec4e373f31e11b3dca98f917fe77 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
 #!/bin/bash
 
+# XXX: FIX THIS!!
+architecture=iphoneos-arm
 version=$(sw_vers -productVersion)
 
 if grep '^Package: firmware$' /var/lib/dpkg/status >/dev/null; then
 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
             firmware=
         elif [[ ${line} == '' ]]; then
             unset firmware
+        elif [[ ${line} == Architecture:* && "${firmware+@}" ]]; then
+            echo "Architecture: ${architecture}"
+            continue
         elif [[ ${line} == Version:* && "${firmware+@}" ]]; then
             echo "Version: ${version}"
             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) <saurik@saurik.com>
 Section: System
 Installed-Size: 0
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
-Architecture: darwin-arm
+Architecture: ${architecture}
 Version: ${version}
 Description: almost impressive Apple frameworks
 Name: iPhone Firmware
 Version: ${version}
 Description: almost impressive Apple frameworks
 Name: iPhone Firmware