]> git.saurik.com Git - cydia.git/blobdiff - Library/startup
Added support for sbdidlaunch.
[cydia.git] / Library / startup
index 7ee6cd3e54f022fd58793c37a9536a043ebe2a15..edceed1680dd6f3cbae9a4064de4e45cc5143a05 100755 (executable)
@@ -1,6 +1,12 @@
 #!/bin/bash
 export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
+sbdidlaunch
 /usr/libexec/cydia/firmware.sh
-debs=/var/root/Media/Cydia/AutoInstall/*.deb
-dpkg -i ${debs}
-rm -f ${debs}
+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
+    su -c uicache mobile
+fi