]> git.saurik.com Git - cydia.git/blobdiff - Library/startup
We have to unload BEFORE we get the viewWillAppear callback.
[cydia.git] / Library / startup
index 7f8b616f349ab65bbc7861553a84043eef9b625e..368cacc6f9984f08cd2bd6e903b20e8210f66436 100755 (executable)
@@ -1,7 +1,22 @@
 #!/bin/bash
+
 export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
+
+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[@]}"
+    cache=
+
+    killall -9 Lowtide AppleTV
+fi
+
+if [[ ${cache+@} ]]; then
+    su -c uicache mobile
 fi