From 5225a136086af71bee413d2190db0f9fe7136f15 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Jun 2010 09:08:04 +0000 Subject: [PATCH] Some random fixes for the 4.0 launch. --- Cydia.app/Info.plist | 6 ++++++ Library/startup | 13 +++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Cydia.app/Info.plist b/Cydia.app/Info.plist index 14be9bbe..a8cf2ebd 100644 --- a/Cydia.app/Info.plist +++ b/Cydia.app/Info.plist @@ -64,6 +64,12 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + + UIBackgroundModes + + audio + continuous + diff --git a/Library/startup b/Library/startup index edceed16..4d72c330 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 -- 2.45.2