X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/de0dbbab58b40c0b4a2ce2b420acffb4a643f1c3..23bcd5256368943a68e7f1a3362cc89f6e46c9ae:/Library/firmware.sh diff --git a/Library/firmware.sh b/Library/firmware.sh index e0ef0ab8..a45fd218 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -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) 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