]>
git.saurik.com Git - cydia.git/blob - Library/firmware.sh
3 version
=$(sw_vers -productVersion)
5 if grep '^Package: firmware$' /var
/lib
/dpkg
/status
>/dev
/null
; then
6 cat /var
/lib
/dpkg
/status
| while read -r line
; do
7 if [[ ${line} == 'Package: firmware' ]]; then
9 elif [[ ${line} == '' ]]; then
11 elif [[ ${line} == Version
:* && "${firmware+@}" ]]; then
12 echo "Version: ${version}"
17 done >/var
/lib
/dpkg
/status_
19 cat /var
/lib
/dpkg
/status
- >/var
/lib
/dpkg
/status_
<<EOF
22 Status: install ok installed
26 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
27 Architecture: darwin-arm
29 Description: almost impressive Apple frameworks
33 fi && mv -f /var
/lib
/dpkg
/status
{_
,}
35 echo "/." >/var
/lib
/dpkg
/info
/firmware.list
37 if [[ ${version} = 1.0* || ${version} = 1.1.
[012] ]]; then
43 if [[ ! -h /User
&& -d /User
]]; then
44 cp -afT /User
/var
/"${user}"
45 fi && rm -rf /User
&& ln -s "/var/${user}" /User