]> git.saurik.com Git - cydia.git/blobdiff - Library/firmware.sh
Fixed browser links and modify delegates.
[cydia.git] / Library / firmware.sh
index e0ef0ab842042c6e7889183d41e50cf3b63bed9a..a45fd2182cdf750d81b9697b151985c0edd79305 100755 (executable)
@@ -3,7 +3,7 @@
 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
@@ -27,11 +27,13 @@ Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 Architecture: darwin-arm
 Version: ${version}
 Description: almost impressive Apple frameworks
-Name: Apple iPhone Firmware
+Name: iPhone Firmware
 
 EOF
 fi && mv -f /var/lib/dpkg/status{_,}
 
+echo "/." >/var/lib/dpkg/info/firmware.list
+
 if [[ ${version} = 1.0* || ${version} = 1.1.[012] ]]; then
     user=root
 else