diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-06-21 09:08:04 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:14:00 +0000 |
commit | fde3413551e6ec81ca76801ae1f65b52fa7cb798 (patch) | |
tree | 6b0332db89d76e94d7d8e76322b523c21c55eb36 | |
parent | 8f4edcaebd060701ed8ccdaf5b09bd5545154c86 (diff) |
Some random fixes for the 4.0 launch.
-rw-r--r-- | Cydia.app/Info.plist | 6 | ||||
-rwxr-xr-x | Library/startup | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/Cydia.app/Info.plist b/Cydia.app/Info.plist index 14be9bb..a8cf2eb 100644 --- a/Cydia.app/Info.plist +++ b/Cydia.app/Info.plist @@ -64,6 +64,12 @@ <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string--> </array> + + <key>UIBackgroundModes</key> + <array> + <string>audio</string> + <string>continuous</string> + </array> </dict> </plist> diff --git a/Library/startup b/Library/startup index edceed1..4d72c33 100755 --- a/Library/startup +++ b/Library/startup @@ -1,12 +1,21 @@ #!/bin/bash + export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin sbdidlaunch + +if [[ ! -e /var/lib/cydia/firmware.ver ]]; then + cache= +fi + /usr/libexec/cydia/firmware.sh + debs=(/var/root/Media/Cydia/AutoInstall/*.deb) if [[ ${#debs[@]} -ne 0 && -f ${debs[0]} ]]; then dpkg -i "${debs[@]}" rm -f "${debs[@]}" - su -c uicache mobile -elif ! grep Cydia /var/mobile/Library/Caches/com.apple.mobile.installation.plist &>/dev/null; then + cache= +fi + +if [[ ${cache+@} ]]; then su -c uicache mobile fi |