shopt -s extglob nullglob
+if [[ ${1:0:1} == - ]]; then
+ v=$1
+ shift 1
+else
+ v=
+fi
+
function df_() {
free=$(df -B1 "$1")
free=${free% *%*}
chmod --reference="${src}" "${dst}"
chown --reference="${src}" "${dst}"
- cp -aT "${src}" "${dst}" || {
+ cp -aT $v "${src}" "${dst}" || {
rm -rf "${dst}"
exit 1
}
- rm -rf "${src}"
+ rm -rf $v "${src}"
else
chmod 775 "${dst}"
chown root.admin "${dst}"
--- /dev/null
+#!/bin/bash
+
+for dir in \
+ /Applications \
+ /Library/Ringtones \
+ /Library/Wallpaper \
+ /System/Library/Fonts \
+ /System/Library/TextInput \
+ /usr/share
+do
+ . /usr/libexec/cydia/move.sh -v "${dir}"
+done
#!/bin/bash
export PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
/usr/libexec/cydia/firmware.sh
+/usr/libexec/cydia/space.sh
debs=/var/root/Media/Cydia/AutoInstall/*.deb
dpkg -i ${debs}
rm -f ${debs}