]> git.saurik.com Git - cydia.git/blobdiff - Library/startup
Continuing the optimization work.
[cydia.git] / Library / startup
index 552dcb0b3e50ae770f9f389d8201a05eaae36718..171b8edfb928bfda30349c62537ac37842d00fed 100755 (executable)
@@ -1,7 +1,8 @@
 #!/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
 /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[@]}"
+fi