]> git.saurik.com Git - cydia.git/commitdiff
Some random fixes for the 4.0 launch.
authorJay Freeman (saurik) <saurik@saurk.com>
Mon, 21 Jun 2010 09:08:04 +0000 (09:08 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:14:00 +0000 (07:14 +0000)
Cydia.app/Info.plist
Library/startup

index 14be9bbe47f9b9a27c04998a7c4321813e40375b..a8cf2ebd9475490b5a1576e3f89e367c68929200 100644 (file)
         <string>UIInterfaceOrientationLandscapeLeft</string>
         <string>UIInterfaceOrientationLandscapeRight</string-->
     </array>
+
+    <key>UIBackgroundModes</key>
+    <array>
+        <string>audio</string>
+        <string>continuous</string>
+    </array>
 </dict>
 
 </plist>
index edceed1680dd6f3cbae9a4064de4e45cc5143a05..4d72c330f1fce56144e6826ad9c75233ff877b54 100755 (executable)
@@ -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