X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/a781cf0d59966f9a6ada482efddc1c1b2990c92b..ce0372dbb498eb933e0b3ef1b66213e9cb8111a5:/Library/startup?ds=sidebyside diff --git a/Library/startup b/Library/startup index 552dcb0b..a51843b8 100755 --- a/Library/startup +++ b/Library/startup @@ -1,7 +1,20 @@ #!/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= +fi + +if [[ ${cache+@} ]]; then + su -c uicache mobile +fi