From 7b18f3bdb16b6bb95a75067b236caa570b302956 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Tue, 4 Aug 2020 17:21:02 +0800 Subject: [PATCH] Fix iproxy --- restore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restore.sh b/restore.sh index 9ed186e..cb03584 100755 --- a/restore.sh +++ b/restore.sh @@ -204,8 +204,8 @@ function kDFU { [[ $VersionDetect == 5 ]] && kloader='kloader5' [[ ! $kloader ]] && kloader='kloader' - [ ! $(which iproxy) ] && Error "One of the dependencies (iproxy) cannot be found. Please re-install dependencies and try again" "./restore.sh InstallDependencies" - iproxy 2222:22 &>/dev/null & + [ ! $(which iproxy) ] && Error "iproxy cannot be found. Please re-install dependencies and try again" "./restore.sh InstallDependencies" + iproxy 2222 22 & iproxyPID=$! WifiAddr=$(echo "$ideviceinfo" | grep 'WiFiAddress' | cut -c 14-) WifiAddrDecr=$(echo $(printf "%x\n" $(expr $(printf "%d\n" 0x$(echo "${WifiAddr}" | tr -d ':')) - 1)) | sed 's/\(..\)/\1:/g;s/:$//')