]> git.saurik.com Git - cydia.git/blobdiff - Library/startup
Display the size of the output package after dpkg-deb.
[cydia.git] / Library / startup
index 552dcb0b3e50ae770f9f389d8201a05eaae36718..a51843b89173360fa7186611d6f703a831a5a849 100755 (executable)
@@ -1,7 +1,20 @@
 #!/bin/bash
 #!/bin/bash
+
 export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
 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
 /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