mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-06-12 10:49:25 +02:00
Fix some commands in erase78
This commit is contained in:
10
restore.sh
10
restore.sh
@ -4218,10 +4218,12 @@ device_ramdisk64() {
|
|||||||
fi
|
fi
|
||||||
device_sshpass alpine
|
device_sshpass alpine
|
||||||
|
|
||||||
print "* Mount filesystems with this command (for newer iOS versions only!):"
|
print "* Mount filesystems with this command (for iOS 11 and newer):"
|
||||||
print " mount_filesystems"
|
print " mount_filesystems"
|
||||||
print "* Mount root filesystem with this command (tested for iOS 10.3.x):"
|
print "* Mount filesystems with this command (for iOS 10.3.x):"
|
||||||
print " mount_apfs /dev/disk0s1s1 /mnt1"
|
print " mount_apfs /dev/disk0s1s1 /mnt1; mount_apfs /dev/disk0s1s2 /mnt2"
|
||||||
|
print "* Mount filesystems with this command (for iOS 10.2.1 and older):"
|
||||||
|
print " mount_hfs /dev/disk0s1s1 /mnt1; mount_hfs /dev/disk0s1s2 /mnt2"
|
||||||
|
|
||||||
menu_ramdisk $build_id
|
menu_ramdisk $build_id
|
||||||
}
|
}
|
||||||
@ -4715,7 +4717,7 @@ menu_ramdisk() {
|
|||||||
pause
|
pause
|
||||||
$ssh -p $ssh_port root@127.0.0.1 "mount_hfs /dev/disk0s1s1 /mnt1; mount_hfs /dev/disk0s1s2 /mnt2; cp /com.apple.springboard.plist /mnt1/"
|
$ssh -p $ssh_port root@127.0.0.1 "mount_hfs /dev/disk0s1s1 /mnt1; mount_hfs /dev/disk0s1s2 /mnt2; cp /com.apple.springboard.plist /mnt1/"
|
||||||
$ssh -p $ssh_port root@127.0.0.1 "cd /mnt2/mobile/Library/Preferences; mv com.apple.springboard.plist com.apple.springboard.plist.bak; ln -s /com.apple.springboard.plist ./com.apple.springboard.plist"
|
$ssh -p $ssh_port root@127.0.0.1 "cd /mnt2/mobile/Library/Preferences; mv com.apple.springboard.plist com.apple.springboard.plist.bak; ln -s /com.apple.springboard.plist ./com.apple.springboard.plist"
|
||||||
$ssh -p $ssh_port root@127.0.0.1 "sync cd / umount /mnt2; umount /mnt1; sync; reboot"
|
$ssh -p $ssh_port root@127.0.0.1 "sync; cd /; umount /mnt2; umount /mnt1; sync; reboot"
|
||||||
log "Done, your device should reboot now"
|
log "Done, your device should reboot now"
|
||||||
print "* If your device is on iOS 7, make sure to boot an iOS 8 ramdisk to fix booting."
|
print "* If your device is on iOS 7, make sure to boot an iOS 8 ramdisk to fix booting."
|
||||||
print "* Proceed to trigger a restore by entering wrong passwords 10 times."
|
print "* Proceed to trigger a restore by entering wrong passwords 10 times."
|
||||||
|
Reference in New Issue
Block a user