diff --git a/resources/depends.sh b/resources/depends.sh index 60b8d84..82f9a39 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -81,7 +81,6 @@ SetToolPaths() { # these need to run as root for device detection expect="sudo $expect" futurerestore="sudo $futurerestore" - idevicerestore="sudo $idevicerestore" ipwndfu="sudo $ipwndfu" irecovery="sudo LD_LIBRARY_PATH=./resources/lib $irecovery" irecovery2="sudo LD_LIBRARY_PATH=./resources/lib $irecovery2" @@ -91,7 +90,9 @@ SetToolPaths() { opensslver=$(openssl version | awk '{print $2}' | cut -c -3) if [[ $opensslver == "3"* ]]; then cherrybin="env LD_LIBRARY_PATH=../resources/lib $cherrybin" - idevicerestore="sudo LD_LIBRARY_PATH=./resources/lib ./resources/tools/idevicerestore_$platform" + idevicerestore="sudo ${idevicerestore}2" + else + idevicerestore="sudo $idevicerestore" fi elif [[ $platform == "macos" ]]; then diff --git a/resources/tools/idevicerestore_linux b/resources/tools/idevicerestore_linux index fa26650..6259f9b 100755 Binary files a/resources/tools/idevicerestore_linux and b/resources/tools/idevicerestore_linux differ diff --git a/resources/tools/idevicerestore_linux2 b/resources/tools/idevicerestore_linux2 new file mode 100755 index 0000000..59ab7ea Binary files /dev/null and b/resources/tools/idevicerestore_linux2 differ