From 8ed81b2c1550ac090895528b1f81b0a85c56002a Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Tue, 3 Oct 2023 00:46:29 +0800 Subject: [PATCH] link lib for ipwndfu on arm mac to detect libusb --- restore.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/restore.sh b/restore.sh index 6671e07..44b3434 100755 --- a/restore.sh +++ b/restore.sh @@ -22,6 +22,7 @@ warn() { error() { echo -e "${color_R}[Error] ${1}\n${color_Y}${*:2}${color_N}" + print "* Legacy iOS Kit $version_current ($git_hash)" exit 1 } @@ -1336,6 +1337,11 @@ device_ipwndfu() { mv ../resources/ipwndfu*/ ../resources/ipwndfu/ echo "$ipwndfu_sha1" > ../resources/ipwndfu/sha1 fi + if [[ -d /opt/local/lib ]]; then + ln -sf /opt/local/lib ~/lib + elif [[ -d /opt/homebrew/lib ]]; then + ln -sf /opt/homebrew/lib ~/lib + fi pushd ../resources/ipwndfu/ >/dev/null case $1 in @@ -4541,6 +4547,7 @@ main() { echo print "* Save the terminal output now if needed." + print "* Legacy iOS Kit $version_current ($git_hash)" echo }