mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 15:51:50 +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
|
also set distro, debian_ver, ubuntu_ver, fedora_ver variables for linux
|
||||||
|
|
||||||
list of tools set here:
|
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:
|
these ones "need" sudo for linux arm, not for others:
|
||||||
futurerestore, gaster, idevicerestore, idevicererestore, ipwnder, irecovery
|
futurerestore, gaster, idevicerestore, idevicererestore, ipwnder, irecovery
|
||||||
@ -161,8 +161,6 @@ set_tool_paths() {
|
|||||||
else
|
else
|
||||||
error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros"
|
error "Your distro ($platform_ver) is not detected/supported. See the repo README for supported OS versions/distros"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ping="ping -c1"
|
|
||||||
zenity="$(which zenity)"
|
zenity="$(which zenity)"
|
||||||
|
|
||||||
# live cd/usb check
|
# live cd/usb check
|
||||||
@ -237,12 +235,9 @@ set_tool_paths() {
|
|||||||
"* You need to be on macOS 10.13 or newer to continue."
|
"* You need to be on macOS 10.13 or newer to continue."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bspatch="$(which bspatch)"
|
bspatch="$(which bspatch)"
|
||||||
ipwnder32="$dir/ipwnder32"
|
ipwnder32="$dir/ipwnder32"
|
||||||
ping="ping -c1"
|
|
||||||
sha1sum="$(which shasum) -a 1"
|
sha1sum="$(which shasum) -a 1"
|
||||||
sha256sum="$(which shasum) -a 256"
|
|
||||||
|
|
||||||
# kill macos daemons
|
# kill macos daemons
|
||||||
killall -STOP AMPDevicesAgent AMPDeviceDiscoveryAgent MobileDeviceUpdater
|
killall -STOP AMPDevicesAgent AMPDeviceDiscoveryAgent MobileDeviceUpdater
|
||||||
@ -281,7 +276,6 @@ set_tool_paths() {
|
|||||||
else
|
else
|
||||||
bspatch="$dir/bspatch"
|
bspatch="$dir/bspatch"
|
||||||
sha1sum="$(which sha1sum)"
|
sha1sum="$(which sha1sum)"
|
||||||
sha256sum="$(which sha256sum)"
|
|
||||||
fi
|
fi
|
||||||
ideviceactivation="$(which ideviceactivation 2>/dev/null)"
|
ideviceactivation="$(which ideviceactivation 2>/dev/null)"
|
||||||
if [[ -z $ideviceactivation ]]; then
|
if [[ -z $ideviceactivation ]]; then
|
||||||
@ -2232,7 +2226,7 @@ ipsw_prepare_bundle() {
|
|||||||
|
|
||||||
if [[ $1 == "base" ]]; then
|
if [[ $1 == "base" ]]; then
|
||||||
echo -e "<key>Firmware</key><dict/>" >> $NewPlist
|
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
|
echo -e "<key>Firmware</key><dict>" >> $NewPlist
|
||||||
ipsw_prepare_keys iBSS $1
|
ipsw_prepare_keys iBSS $1
|
||||||
ipsw_prepare_keys RestoreRamdisk $1
|
ipsw_prepare_keys RestoreRamdisk $1
|
||||||
@ -4349,9 +4343,9 @@ menu_restore() {
|
|||||||
menu_items+=("powdersn0w (any iOS)");;
|
menu_items+=("powdersn0w (any iOS)");;
|
||||||
esac
|
esac
|
||||||
case $device_type in
|
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
|
if [[ -z $1 ]]; then
|
||||||
: #menu_items+=("Other (Custom IPSW)")
|
menu_items+=("Other (Custom IPSW)")
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user