From 8c6d3c8effc66aa2e50bc6c1a294b8fb80b3609e Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Thu, 14 Feb 2008 14:34:03 +0000 Subject: Moving to safer bootstrap setup. git-svn-id: http://svn.telesphoreo.org/trunk@89 514c082c-b64e-11dc-b46d-3d985efe055d --- over/usr/libexec/cydia/boot/godmode | Bin 8956 -> 0 bytes over/usr/libexec/cydia/boot/install.sh | 38 --------------------------------- over/usr/libexec/cydia_/godmode | Bin 0 -> 8956 bytes over/usr/libexec/cydia_/install.sh | 38 +++++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 38 deletions(-) delete mode 100755 over/usr/libexec/cydia/boot/godmode delete mode 100755 over/usr/libexec/cydia/boot/install.sh create mode 100755 over/usr/libexec/cydia_/godmode create mode 100755 over/usr/libexec/cydia_/install.sh (limited to 'over/usr/libexec') diff --git a/over/usr/libexec/cydia/boot/godmode b/over/usr/libexec/cydia/boot/godmode deleted file mode 100755 index 9ff8ec9eb..000000000 Binary files a/over/usr/libexec/cydia/boot/godmode and /dev/null 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 ]] diff --git a/over/usr/libexec/cydia_/godmode b/over/usr/libexec/cydia_/godmode new file mode 100755 index 000000000..9ff8ec9eb Binary files /dev/null and b/over/usr/libexec/cydia_/godmode differ diff --git a/over/usr/libexec/cydia_/install.sh b/over/usr/libexec/cydia_/install.sh new file mode 100755 index 000000000..0e5d92535 --- /dev/null +++ b/over/usr/libexec/cydia_/install.sh @@ -0,0 +1,38 @@ +#!/usr/libexec/cydia_/bash + +shopt -s extglob nullglob +export PATH=/usr/libexec/cydia_ + +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 ]] -- cgit v1.2.3