From 70f2b5efcfe0b837f8338a39f5fd77b0f32ad630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=95=E3=81=95?= <91324887+sasa8810@users.noreply.github.com> Date: Mon, 12 Feb 2024 17:41:39 +0900 Subject: [PATCH] Update downr1n.sh --- downr1n.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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() {