summaryrefslogtreecommitdiff
path: root/pwnr
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-08-07 23:05:37 +0000
committerJay Freeman <saurik@saurik.com>2008-08-07 23:05:37 +0000
commit71ec28cbbe345ac91fc815fa4e550ce90917d0d9 (patch)
tree950a74bc199e152efc11d80a66ec295e64de3283 /pwnr
parentf7b0b5e80ed1dfdc71adf99a0512f9d86053bd5f (diff)
Fixed an impotant internal-to-Pwn bug.
git-svn-id: http://svn.telesphoreo.org/trunk@419 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'pwnr')
-rwxr-xr-xpwnr/space.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/pwnr/space.sh b/pwnr/space.sh
new file mode 100755
index 000000000..8556ae1cb
--- /dev/null
+++ b/pwnr/space.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+shopt -s extglob
+
+function stash() {
+ src=$1
+ dst=var/stash/${src##*/}
+ mv "${src}" "${dst}"
+ dst=${src//+([a-z])/..}/${dst}
+ ln -s "${dst#../}" "${src}"
+}
+
+mnt=$1
+cd "${mnt}"
+
+mkdir -p var/stash
+mkdir -p usr/include
+
+stash Applications
+stash Library/Ringtones
+stash Library/Wallpaper
+stash usr/include
+stash usr/libexec
+stash usr/share