diff options
author | Jay Freeman <saurik@saurik.com> | 2008-02-14 14:32:59 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-02-14 14:32:59 +0000 |
commit | 6b964b69935fcc52a1c0a95695ca436e00b6690f (patch) | |
tree | a863dd50c7cc7fe19b9759360ed4d5b545f9ba0f /data/cydia/install.sh | |
parent | 459c9779557e19437de4a02f6311c322989228b3 (diff) |
Drastically reworked bootstrap package.
git-svn-id: http://svn.telesphoreo.org/trunk@88 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/cydia/install.sh')
-rwxr-xr-x | data/cydia/install.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/data/cydia/install.sh b/data/cydia/install.sh deleted file mode 100755 index bfac1459d..000000000 --- a/data/cydia/install.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -shopt -s extglob nullglob - -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=$(TMPDIR=/var mktemp -t /var -d cydia.XXXXXX) - fi - - mv -T "${dir}" "${new}" - ln -s "${new}" "${dir}" - fi -fi; done - -[[ $(df_ /) -gt 33554432 && $(df_ /var) -gt 33554432 ]] |