summaryrefslogtreecommitdiff
path: root/pwnr
diff options
context:
space:
mode:
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