diff --git a/downr1n.sh b/downr1n.sh index e754db7..6aadc32 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -383,9 +383,16 @@ _kill_if_running() { _runFuturerestore() { read -p "Press ENTER to continue with futurerestore, your device will start to restoring <-" rm -rf /tmp/futurerestore/ - "$dir"/futurerestore -t blobs/"$deviceid"-"$version".shsh2 --use-pwndfu --skip-blob \ - --rdsk work/rdsk.im4p --rkrn work/krnl.im4p \ - --latest-sep "$HasBaseband" "$ipsw" + if [ "$os" == "Linux"]; then + sudo -u $SUDO_USER \ + "$dir"/futurerestore -t blobs/"$deviceid"-"$version".shsh2 --use-pwndfu --skip-blob \ + --rdsk work/rdsk.im4p --rkrn work/krnl.im4p \ + --latest-sep "$HasBaseband" "$ipsw" + else + "$dir"/futurerestore -t blobs/"$deviceid"-"$version".shsh2 --use-pwndfu --skip-blob \ + --rdsk work/rdsk.im4p --rkrn work/krnl.im4p \ + --latest-sep "$HasBaseband" "$ipsw" + fi } _detect() {