]> git.saurik.com Git - cydia.git/blobdiff - Library/firmware.sh
Added custom depictions and better webview support.
[cydia.git] / Library / firmware.sh
index ee8e26a39c522b20cbef7f45f24e8473bb24823a..3edf8d084948ec4e373f31e11b3dca98f917fe77 100755 (executable)
@@ -1,13 +1,18 @@
 #!/bin/bash
 
+# XXX: FIX THIS!!
+architecture=iphoneos-arm
 version=$(sw_vers -productVersion)
 
 if grep '^Package: firmware$' /var/lib/dpkg/status >/dev/null; then
-    cat /var/lib/dpkg/status | while read -r line; do
+    cat /var/lib/dpkg/status | while IFS= read -r line; do
         if [[ ${line} == 'Package: firmware' ]]; 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,10 +29,10 @@ Priority: required
 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: Apple iPhone Firmware
+Name: iPhone Firmware
 
 EOF
 fi && mv -f /var/lib/dpkg/status{_,}