summaryrefslogtreecommitdiff
path: root/over/usr/libexec/cydia/boot
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-14 14:34:03 +0000
committerJay Freeman <saurik@saurik.com>2008-02-14 14:34:03 +0000
commit8c6d3c8effc66aa2e50bc6c1a294b8fb80b3609e (patch)
tree04f59bc9b18e775fe457e30302c98858ac3552fd /over/usr/libexec/cydia/boot
parent6b964b69935fcc52a1c0a95695ca436e00b6690f (diff)
Moving to safer bootstrap setup.
git-svn-id: http://svn.telesphoreo.org/trunk@89 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'over/usr/libexec/cydia/boot')
-rwxr-xr-xover/usr/libexec/cydia/boot/godmodebin8956 -> 0 bytes
-rwxr-xr-xover/usr/libexec/cydia/boot/install.sh38
2 files changed, 0 insertions, 38 deletions
diff --git a/over/usr/libexec/cydia/boot/godmode b/over/usr/libexec/cydia/boot/godmode
deleted file mode 100755
index 9ff8ec9eb..000000000
--- a/over/usr/libexec/cydia/boot/godmode
+++ /dev/null
Binary files differ
diff --git a/over/usr/libexec/cydia/boot/install.sh b/over/usr/libexec/cydia/boot/install.sh
deleted file mode 100755
index 455a27a38..000000000
--- a/over/usr/libexec/cydia/boot/install.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/libexec/cydia/boot/bash
-
-shopt -s extglob nullglob
-export PATH=/usr/libexec/cydia/boot
-
-function df_() {
- free=$(df -B1 "$1")
- free=${free% *%*}
- free=${free%%*( )}
- free=${free##* }
- echo "${free}"
-}
-
-for dir in \
- /Applications \
- /Library/Ringtones \
- /Library/Wallpaper \
- /System/Library/Fonts \
- /usr/share
-do if [[ -d ${dir} && ! -h ${dir} ]]; then
- used=$(du -bs "${dir}")
- used=${used%%$'\t'*}
- free=$(df_ /var)
-
- if [[ ${used} -lt ${free} ]]; then
- base=$(basename "${dir}")
-
- new=/var/${base}
- if [[ -e ${new} ]]; then
- new=$(mktemp -d cydia.XXXXXX)
- fi
-
- godmode mv -T "${dir}" "${new}"
- godmode ln -s "${new}" "${dir}"
- fi
-fi; done
-
-[[ $(df_ /) -gt 33554432 && $(df_ /var) -gt 33554432 ]]