Skip to content

Commit

Permalink
link lib for ipwndfu on arm mac to detect libusb
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Oct 2, 2023
1 parent 18c353c commit 8ed81b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -4541,6 +4547,7 @@ main() {

echo
print "* Save the terminal output now if needed."
print "* Legacy iOS Kit $version_current ($git_hash)"
echo
}

Expand Down

0 comments on commit 8ed81b2

Please sign in to comment.