summaryrefslogtreecommitdiff
path: root/Library
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-11-04 21:44:31 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2014-11-04 21:44:31 -0800
commitbcc5860752b0e5e5fb86a0bdb2981091a449e0bf (patch)
treecd9e643300c6abb86591b181a1dd28d2b6a0583f /Library
parente4d9a4f2fdc098e3447d4a81bc4dbb2f9acd5e53 (diff)
Move /var/stash under /var/db/stash for setnsfpn.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/move.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/move.sh b/Library/move.sh
index 7e737e3..54750cd 100755
--- a/Library/move.sh
+++ b/Library/move.sh
@@ -20,8 +20,13 @@ function df_() {
function mv_() {
src=$1
- mkdir -p /var/stash
- /usr/libexec/cydia/setnsfpn /var/stash
+ if [[ ! -e /var/stash ]]; then
+ mkdir -p /var/db/stash
+ /usr/libexec/cydia/setnsfpn /var/db/stash
+ ln -s -t /var /var/db/stash
+ elif [[ -d /var/stash ]]; then
+ /usr/libexec/cydia/setnsfpn /var/stash
+ fi
tmp=$(mktemp -d /var/stash/_.XXXXXX)
dst=${tmp}/${src##*/}