mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
an ipwnder change again
This commit is contained in:
parent
bdcfa84e19
commit
759580229f
32
restore.sh
32
restore.sh
@ -1561,19 +1561,14 @@ device_enter_mode() {
|
|||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [[ $(uname -m) != "x86_64" || $device_proc != 7 ]]; then
|
elif (( device_proc >= 6 )) && [[ $(uname -m) != "x86_64" || $device_proc == 6 ]]; then
|
||||||
# A4/A6/A7 asi mac uses ipwnder_lite
|
# A6 mac/A7 asi mac uses ipwnder_lite
|
||||||
# A4/A6 mac uses ipwnder_lite
|
|
||||||
log "Placing device to pwnDFU mode using ipwnder_lite"
|
log "Placing device to pwnDFU mode using ipwnder_lite"
|
||||||
opt="$ipwnder"
|
opt="${ipwnder}2 -p"
|
||||||
case $device_proc in
|
|
||||||
4 ) opt+=" -d";;
|
|
||||||
* ) opt+="2 -p";;
|
|
||||||
esac
|
|
||||||
$opt
|
$opt
|
||||||
tool_pwned=$?
|
tool_pwned=$?
|
||||||
else
|
else
|
||||||
# A7 intel mac uses ipwnder32/ipwnder_lite
|
# A4 mac/A7 intel mac uses ipwnder32/ipwnder_lite
|
||||||
local selection=("ipwnder32" "ipwnder_lite")
|
local selection=("ipwnder32" "ipwnder_lite")
|
||||||
input "PwnDFU Tool Option"
|
input "PwnDFU Tool Option"
|
||||||
print "* Select tool to be used for entering pwned DFU mode."
|
print "* Select tool to be used for entering pwned DFU mode."
|
||||||
@ -1583,7 +1578,14 @@ device_enter_mode() {
|
|||||||
select opt2 in "${selection[@]}"; do
|
select opt2 in "${selection[@]}"; do
|
||||||
case $opt2 in
|
case $opt2 in
|
||||||
"ipwnder32" ) opt="$ipwnder32 -p"; break;;
|
"ipwnder32" ) opt="$ipwnder32 -p"; break;;
|
||||||
* ) opt="${ipwnder}2 -p"; break;;
|
* )
|
||||||
|
opt="$ipwnder"
|
||||||
|
case $device_proc in
|
||||||
|
4 ) opt+=" -d";;
|
||||||
|
* ) opt+="2 -p";;
|
||||||
|
esac
|
||||||
|
break
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
@ -5568,7 +5570,8 @@ menu_ramdisk() {
|
|||||||
fi
|
fi
|
||||||
log "Checking for latest TrollStore"
|
log "Checking for latest TrollStore"
|
||||||
local latest="$(curl https://api.github.com/repos/opa334/TrollStore/releases/latest | $jq -r ".tag_name")"
|
local latest="$(curl https://api.github.com/repos/opa334/TrollStore/releases/latest | $jq -r ".tag_name")"
|
||||||
local current="$(cat ../saved/TrollStore_version 2>/dev/null)"
|
local current="$(cat ../saved/TrollStore_version 2>/dev/null || echo "none")"
|
||||||
|
log "Latest version: $latest, current version: $current"
|
||||||
if [[ $current != "$latest" ]]; then
|
if [[ $current != "$latest" ]]; then
|
||||||
rm -f ../saved/TrollStore.tar ../saved/PersistenceHelper_Embedded
|
rm -f ../saved/TrollStore.tar ../saved/PersistenceHelper_Embedded
|
||||||
fi
|
fi
|
||||||
@ -6053,7 +6056,8 @@ menu_ipa() {
|
|||||||
fi
|
fi
|
||||||
log "Checking for latest Sideloader"
|
log "Checking for latest Sideloader"
|
||||||
local latest="$(curl https://api.github.com/repos/Dadoum/Sideloader/releases/latest | $jq -r ".tag_name")"
|
local latest="$(curl https://api.github.com/repos/Dadoum/Sideloader/releases/latest | $jq -r ".tag_name")"
|
||||||
local current="$(cat ../saved/Sideloader_version 2>/dev/null)"
|
local current="$(cat ../saved/Sideloader_version 2>/dev/null || echo "none")"
|
||||||
|
log "Latest version: $latest, current version: $current"
|
||||||
if [[ $current != "$latest" ]]; then
|
if [[ $current != "$latest" ]]; then
|
||||||
rm -f ../saved/$sideloader
|
rm -f ../saved/$sideloader
|
||||||
fi
|
fi
|
||||||
@ -7883,8 +7887,8 @@ device_altserver() {
|
|||||||
fi
|
fi
|
||||||
log "Checking for latest anisette-server"
|
log "Checking for latest anisette-server"
|
||||||
local latest="$(curl https://api.github.com/repos/LukeZGD/Provision/releases/latest | $jq -r ".tag_name")"
|
local latest="$(curl https://api.github.com/repos/LukeZGD/Provision/releases/latest | $jq -r ".tag_name")"
|
||||||
local current="$(cat ../saved/anisette-server_version 2>/dev/null)"
|
local current="$(cat ../saved/anisette-server_version 2>/dev/null || echo "none")"
|
||||||
echo $latest
|
log "Latest version: $latest, current version: $current"
|
||||||
if [[ $current != "$latest" ]]; then
|
if [[ $current != "$latest" ]]; then
|
||||||
rm -f $anisette
|
rm -f $anisette
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user