]>
git.saurik.com Git - cydia.git/blob - Library/firmware.sh
4 architecture
=iphoneos
-arm
5 version
=$(sw_vers -productVersion)
7 if grep '^Package: firmware$' /var
/lib
/dpkg
/status
>/dev
/null
; then
8 cat /var
/lib
/dpkg
/status
| while IFS
= read -r line
; do
9 if [[ ${line} == 'Package: firmware' ]]; then
11 elif [[ ${line} == '' ]]; then
13 elif [[ ${line} == Architecture
:* && "${firmware+@}" ]]; then
14 echo "Architecture: ${architecture}"
16 elif [[ ${line} == Version
:* && "${firmware+@}" ]]; then
17 echo "Version: ${version}"
22 done >/var
/lib
/dpkg
/status_
24 cat /var
/lib
/dpkg
/status
- >/var
/lib
/dpkg
/status_
<<EOF
27 Status: install ok installed
31 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
32 Architecture: ${architecture}
34 Description: almost impressive Apple frameworks
38 fi && mv -f /var
/lib
/dpkg
/status
{_
,}
40 echo "/." >/var
/lib
/dpkg
/info
/firmware.list
42 if [[ ${version} = 1.0* || ${version} = 1.1.
[012] ]]; then
48 if [[ ! -h /User
&& -d /User
]]; then
49 cp -afT /User
/var
/"${user}"
50 fi && rm -rf /User
&& ln -s "/var/${user}" /User