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

View File

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

View File

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