X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/a781cf0d59966f9a6ada482efddc1c1b2990c92b..12d3d98ddb199e60891cfe6b07bcbc117c447134:/Library/startup diff --git a/Library/startup b/Library/startup index 552dcb0b..368cacc6 100755 --- a/Library/startup +++ b/Library/startup @@ -1,7 +1,22 @@ #!/bin/bash + export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin -sysctl -w security.mac.proc_enforce=0 security.mac.vnode_enforce=0 &>/dev/null + +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