From bcc5860752b0e5e5fb86a0bdb2981091a449e0bf Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 4 Nov 2014 21:44:31 -0800 Subject: Move /var/stash under /var/db/stash for setnsfpn. --- Library/move.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Library') 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##*/} -- cgit v1.2.3