diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2012-01-20 02:00:14 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2012-01-20 02:00:14 -0800 |
commit | 5dcff401470fa5ebfdcd266d7c7e2e1c194a1629 (patch) | |
tree | 410b970971a33fd09b03c066df5cf9856e68aa0a | |
parent | e66a043ba80b1b5526db1fd63e6f88c0e16dfc8d (diff) |
Improve the gsc.* packages for iPad compatibility.
-rwxr-xr-x | Library/firmware.sh | 18 | ||||
-rw-r--r-- | MobileCydia.mm | 2 |
2 files changed, 11 insertions, 9 deletions
diff --git a/Library/firmware.sh b/Library/firmware.sh index ac1381d..1bc6a41 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -104,13 +104,15 @@ EOF s/([A-Z])/-\L\1/g; s/^"([^ ]*)"/\1/; s/^-//; / 0$/ d; - ' | while read -r name value; do - pseudo "gsc.${name}" "${value}" "virtual GraphicsServices dependency" - - if [[ ${name} == ipad ]]; then - pseudo "gsc.wildcat" "${value}" "virtual virtual GraphicsServices dependency" - fi - done + ' | while read -r name value; do case "${name}" in + (ipad) for name in ipad wildcat; do + pseudo "gsc.${name}" "${value}" "this device has a very large screen" "iPad" + done;; + + (*) + pseudo "gsc.${name}" "${value}" "virtual GraphicsServices dependency" + ;; + esac; done fi if [[ ${cpu} == arm ]]; then @@ -141,5 +143,5 @@ if [[ ${cpu} == arm ]]; then cp -afT /User /var/mobile fi && rm -rf /User && ln -s "/var/mobile" /User - echo 5 >/var/lib/cydia/firmware.ver + echo 6 >/var/lib/cydia/firmware.ver fi diff --git a/MobileCydia.mm b/MobileCydia.mm index 6a30cac..a59c8ea 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10784,7 +10784,7 @@ int main(int argc, char *argv[]) { int version([[NSString stringWithContentsOfFile:@"/var/lib/cydia/firmware.ver"] intValue]); - if (access("/User", F_OK) != 0 || version != 5) { + if (access("/User", F_OK) != 0 || version != 6) { _trace(); system("/usr/libexec/cydia/firmware.sh"); _trace(); |