X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/77801ff16d182668ca282c4dbc88ba250c5ff1b1..80f25cc9d4d64c4df417557cf2967d157d466f4c:/Library/startup diff --git a/Library/startup b/Library/startup index 7f8b616f..70280528 100755 --- a/Library/startup +++ b/Library/startup @@ -1,7 +1,23 @@ #!/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[@]}" + dpkg -i "${debs[@]}" 2>/tmp/dpkg.log 1>&2 rm -f "${debs[@]}" + cache= + + killall -9 Lowtide AppleTV +fi + +if [[ ${cache+@} ]]; then + sbdidlaunch + su -c uicache mobile fi