X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/717d8c858e632b9f27f6f1c300ec36820f32b13a..bb347c4c58cfcd72dd17be9eeb2fcb8c813140b9:/Library/startup?ds=sidebyside diff --git a/Library/startup b/Library/startup index 7ee6cd3e..70280528 100755 --- a/Library/startup +++ b/Library/startup @@ -1,6 +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 -dpkg -i ${debs} -rm -f ${debs} + +debs=(/var/root/Media/Cydia/AutoInstall/*.deb) +if [[ ${#debs[@]} -ne 0 && -f ${debs[0]} ]]; then + 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