summaryrefslogtreecommitdiff
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/startup13
1 files changed, 11 insertions, 2 deletions
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