X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/fdb40366eb1a68a2ab0a8cbba80a6b7b938ef282..915a2836192d901c0915a5769728f39b7f5974cb:/Library/startup diff --git a/Library/startup b/Library/startup index 171b8edf..4d72c330 100755 --- a/Library/startup +++ b/Library/startup @@ -1,8 +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[@]}" + cache= +fi + +if [[ ${cache+@} ]]; then + su -c uicache mobile fi