X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/aa5e5990e17da617b0e95c962e86924bc9b99b50..45447dc330ae258caf674d1895fe2db6d38cff02:/Library/startup diff --git a/Library/startup b/Library/startup index b75654f3..368cacc6 100755 --- a/Library/startup +++ b/Library/startup @@ -1,6 +1,22 @@ #!/bin/bash -sysctl -w security.mac.proc_enforce=0 security.mac.vnode_enforce=0 &>/dev/null + +export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin + +if [[ ! -e /var/lib/cydia/firmware.ver ]]; then + cache= +fi + /usr/libexec/cydia/firmware.sh -for deb in /var/mobile/Media/Cydia/AutoInstall/*.deb; do - /usr/bin/dpkg -i "${deb}" && /bin/rm "${deb}" -done + +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