More fixes

should be the last of them bugs? hopefully.
This commit is contained in:
LukeZGD 2022-05-31 12:35:00 +08:00
parent 0518314aac
commit 5a1461b3df
3 changed files with 9 additions and 5 deletions

View File

@ -376,6 +376,7 @@ kDFU() {
Log "Entering kDFU mode..."
Echo "* Press TOP or HOME button when the device disconnects and its screen goes black"
Echo "* You may also try to unplug and replug your device"
FindDevice "DFU"
}
@ -502,6 +503,7 @@ EnterPwnREC() {
sleep 3
FindDevice "Recovery" timeout
[[ $? == 0 ]] && break
Echo "* You may also try to unplug and replug your device"
((Attempt++))
done

View File

@ -45,11 +45,13 @@ FutureRestore() {
cd ..
fi
if [[ $DeviceProc == 7 && $platform != "win" ]]; then
# Send dummy file for device detection
$irecovery -f README.md
sleep 2
if [[ $DeviceProc == 7 ]]; then
ExtraArgs+=("-s" "$IPSWRestore/Firmware/all_flash/$SEP" "-m" "$BuildManifest")
if [[ $platform != "win" ]]; then
# Send dummy file for device detection
$irecovery -f README.md
sleep 2
fi
elif [[ $SendiBSS != 1 ]]; then
ExtraArgs+=("--no-ibss")
fi

View File

@ -383,7 +383,7 @@ IPSW64() {
cd $IPSW
zip -rq0 ../$IPSWCustom.ipsw *
cd ..
mv $IPSW $IPSWCustom
mv $IPSW/ $IPSWCustom/
if [[ ! -e $IPSWCustom.ipsw ]]; then
Error "Failed to find custom IPSW. Please run the script again"