X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/bd150f541dd0f3000aed7fbd16967980fb8e5123..45447dc330ae258caf674d1895fe2db6d38cff02:/Library/startup diff --git a/Library/startup b/Library/startup index 7ee6cd3e..368cacc6 100755 --- a/Library/startup +++ b/Library/startup @@ -1,6 +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 -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[@]}" + cache= + + killall -9 Lowtide AppleTV +fi + +if [[ ${cache+@} ]]; then + su -c uicache mobile +fi