mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 07:41:49 +01:00
re-enable custom ipsw option for older devices
This commit is contained in:
parent
546b394048
commit
92186f6bee
14
restore.sh
14
restore.sh
@ -93,7 +93,7 @@ set_tool_paths() {
|
||||
also set distro, debian_ver, ubuntu_ver, fedora_ver variables for linux
|
||||
|
||||
list of tools set here:
|
||||
bspatch, jq, ping, scp, ssh, sha1sum (for macos: shasum -a 1), sha256sum (for macos: shasum -a 256), zenity
|
||||
bspatch, jq, scp, ssh, sha1sum (for macos: shasum -a 1), zenity
|
||||
|
||||
these ones "need" sudo for linux arm, not for others:
|
||||
futurerestore, gaster, idevicerestore, idevicererestore, ipwnder, irecovery
|
||||
@ -161,8 +161,6 @@ set_tool_paths() {
|
||||
else
|
||||
error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros"
|
||||
fi
|
||||
|
||||
ping="ping -c1"
|
||||
zenity="$(which zenity)"
|
||||
|
||||
# live cd/usb check
|
||||
@ -237,12 +235,9 @@ set_tool_paths() {
|
||||
"* You need to be on macOS 10.13 or newer to continue."
|
||||
fi
|
||||
fi
|
||||
|
||||
bspatch="$(which bspatch)"
|
||||
ipwnder32="$dir/ipwnder32"
|
||||
ping="ping -c1"
|
||||
sha1sum="$(which shasum) -a 1"
|
||||
sha256sum="$(which shasum) -a 256"
|
||||
|
||||
# kill macos daemons
|
||||
killall -STOP AMPDevicesAgent AMPDeviceDiscoveryAgent MobileDeviceUpdater
|
||||
@ -281,7 +276,6 @@ set_tool_paths() {
|
||||
else
|
||||
bspatch="$dir/bspatch"
|
||||
sha1sum="$(which sha1sum)"
|
||||
sha256sum="$(which sha256sum)"
|
||||
fi
|
||||
ideviceactivation="$(which ideviceactivation 2>/dev/null)"
|
||||
if [[ -z $ideviceactivation ]]; then
|
||||
@ -2232,7 +2226,7 @@ ipsw_prepare_bundle() {
|
||||
|
||||
if [[ $1 == "base" ]]; then
|
||||
echo -e "<key>Firmware</key><dict/>" >> $NewPlist
|
||||
elif [[ $1 == "target" ]] && [[ $vers == "3" || $vers == "4"* ]]; then
|
||||
elif [[ $1 == "target" && $vers == "4"* ]]; then
|
||||
echo -e "<key>Firmware</key><dict>" >> $NewPlist
|
||||
ipsw_prepare_keys iBSS $1
|
||||
ipsw_prepare_keys RestoreRamdisk $1
|
||||
@ -4349,9 +4343,9 @@ menu_restore() {
|
||||
menu_items+=("powdersn0w (any iOS)");;
|
||||
esac
|
||||
case $device_type in
|
||||
iPhone1,[12] | iPhone2,1 | iPhone3,2 | iPad1,1 | iPod[1234],1 )
|
||||
iPhone1,[12] | iPhone2,1 | iPod[12],1 )
|
||||
if [[ -z $1 ]]; then
|
||||
: #menu_items+=("Other (Custom IPSW)")
|
||||
menu_items+=("Other (Custom IPSW)")
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user