]>
git.saurik.com Git - cydia.git/blob - Library/firmware.sh
4 version
=$(sw_vers -productVersion)
6 cat /var
/lib
/dpkg
/status
| {
8 while IFS
= read -r line
; do
9 #echo "#${firmware+@}/${blank+@} ${line}" 1>&2
11 if [[ ${line} == '' && "${blank+@}" ]]; then
17 if [[ ${line} == 'Package: firmware' ]]; then
19 elif [[ ${line} == '' ]]; then
23 if [[ "${firmware+@}" ]]; then
24 if [[ "${blank+@}" ]]; then
30 #echo "${firmware+@}/${blank+@} ${line}" 1>&2
34 #echo "#${firmware+@}/${blank+@} EOF" 1>&2
35 if ! [[ "${blank+@}" || "${firmware+@}" ]]; then
42 Status: install ok installed
46 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
47 Architecture: iphoneos-arm
49 Description: almost impressive Apple frameworks
54 } >/var
/lib
/dpkg
/status_
56 mv -f /var
/lib
/dpkg
/status
{_
,}
58 echo "/." >/var
/lib
/dpkg
/info
/firmware.list
60 if [[ ${version} = 1.0* || ${version} = 1.1.
[012] ]]; then
66 if [[ ! -h /User
&& -d /User
]]; then
67 cp -afT /User
/var
/"${user}"
68 fi && rm -rf /User
&& ln -s "/var/${user}" /User