mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
Some iBoot stuff for iPad 1 powder
This commit is contained in:
parent
83e3c7cf3d
commit
c40fcb0f9b
12
restore.sh
12
restore.sh
@ -3302,7 +3302,7 @@ ipsw_prepare_ios4multipart() {
|
|||||||
log "Patch reboot"
|
log "Patch reboot"
|
||||||
"$dir/hfsplus" ramdisk.dec untar ../resources/firmware/src/bin.tar
|
"$dir/hfsplus" ramdisk.dec untar ../resources/firmware/src/bin.tar
|
||||||
echo "#!/bin/bash" > reboot
|
echo "#!/bin/bash" > reboot
|
||||||
echo "nvram auto-boot=1; nvram boot-partition=2" >> reboot
|
echo "nvram -c; nvram auto-boot=1; nvram boot-partition=2" >> reboot
|
||||||
if [[ $device_type == "iPhone3,3" ]]; then
|
if [[ $device_type == "iPhone3,3" ]]; then
|
||||||
echo "nvram boot-ramdisk=/a/b/c/d/e/f/g/h/i/disk.dmg" >> reboot
|
echo "nvram boot-ramdisk=/a/b/c/d/e/f/g/h/i/disk.dmg" >> reboot
|
||||||
fi
|
fi
|
||||||
@ -3504,7 +3504,10 @@ ipsw_prepare_multipatch() {
|
|||||||
if [[ $device_target_powder == 1 ]] && [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then
|
if [[ $device_target_powder == 1 ]] && [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then
|
||||||
log "Adding exploit and partition stuff"
|
log "Adding exploit and partition stuff"
|
||||||
cp -R ../resources/firmware/src .
|
cp -R ../resources/firmware/src .
|
||||||
"$dir/hfsplus" RestoreRamdisk.dec untar src/bin4.tar
|
rm src/bin.tar
|
||||||
|
mv src/bin4.tar src/bin.tar
|
||||||
|
tar -rvf src/bin.tar iBoot
|
||||||
|
"$dir/hfsplus" RestoreRamdisk.dec untar src/bin.tar
|
||||||
# reboot chain: reboot4 as reboot, activate_exploit as reboot_, original reboot as reboot__
|
# reboot chain: reboot4 as reboot, activate_exploit as reboot_, original reboot as reboot__
|
||||||
# thanks to testingthings (@throwaway167074) this ios 4 powder nvram fix implementation, https://gist.github.com/LukeZGD/da484f6deb02edefd6689c6bf921d5d4
|
# thanks to testingthings (@throwaway167074) this ios 4 powder nvram fix implementation, https://gist.github.com/LukeZGD/da484f6deb02edefd6689c6bf921d5d4
|
||||||
"$dir/hfsplus" RestoreRamdisk.dec mv sbin/reboot sbin/reboot__
|
"$dir/hfsplus" RestoreRamdisk.dec mv sbin/reboot sbin/reboot__
|
||||||
@ -3656,6 +3659,11 @@ ipsw_prepare_ios4powder() {
|
|||||||
fi
|
fi
|
||||||
patch_iboot $ExtraArgs2
|
patch_iboot $ExtraArgs2
|
||||||
tar -rvf src/bin.tar iBoot
|
tar -rvf src/bin.tar iBoot
|
||||||
|
if [[ $device_type == "iPad1,1" ]]; then
|
||||||
|
cp iBoot iBEC
|
||||||
|
tar -cvf iBoot.tar iBEC
|
||||||
|
ExtraArgs+=" iBoot.tar"
|
||||||
|
fi
|
||||||
if [[ $ipsw_isbeta == 1 ]]; then
|
if [[ $ipsw_isbeta == 1 ]]; then
|
||||||
ipsw_prepare_systemversion
|
ipsw_prepare_systemversion
|
||||||
ExtraArgs+=" systemversion.tar"
|
ExtraArgs+=" systemversion.tar"
|
||||||
|
Loading…
Reference in New Issue
Block a user