]>
git.saurik.com Git - cydia.git/blob - Library/firmware.sh
6 version
=$(sw_vers -productVersion)
8 cat /var
/lib
/dpkg
/status
| {
10 while IFS
= read -r line
; do
11 #echo "#${firmware+@}/${blank+@} ${line}" 1>&2
13 if [[ ${line} == '' && "${blank+@}" ]]; then
19 if [[ ${line} == "Package: "@
(firmware
|gsc.
*) ]]; then
21 elif [[ ${line} == '' ]]; then
25 if [[ "${firmware+@}" ]]; then
26 if [[ "${blank+@}" ]]; then
32 #echo "${firmware+@}/${blank+@} ${line}" 1>&2
36 #echo "#${firmware+@}/${blank+@} EOF" 1>&2
37 if ! [[ "${blank+@}" || "${firmware+@}" ]]; then
44 Status: install ok installed
48 Architecture: iphoneos-arm
50 Description: almost impressive Apple frameworks
56 echo "/." >/var
/lib
/dpkg
/info
/firmware.list
59 /^ [^ ]* = [0-9.]*;$/ ! d;
60 s/^ ([^ ]*) = ([0-9.]*);$/\1 \2/;
61 s/([A-Z])/-\L\1/g; s/^"([^ ]*)"/\1/;
64 ' | while read -r name value
; do
69 Status: install ok installed
73 Architecture: iphoneos-arm
75 Description: GraphicsService Capability Bit
81 echo "/." >/var
/lib
/dpkg
/info
/gsc.
"${name}".list
85 } >/var
/lib
/dpkg
/status_
87 mv -f /var
/lib
/dpkg
/status
{_
,}
89 if [[ ${version} = 1.0* || ${version} = 1.1.
[012] ]]; then
95 if [[ ! -h /User
&& -d /User
]]; then
96 cp -afT /User
/var
/"${user}"
97 fi && rm -rf /User
&& ln -s "/var/${user}" /User
99 echo 2 >/var
/lib
/cydia
/firmware.ver