Skip to content

Commit

Permalink
Run full paths for erase78
Browse files Browse the repository at this point in the history
for #468
  • Loading branch information
LukeZGD committed Apr 24, 2024
1 parent 5c88483 commit 64cc7dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4419,11 +4419,12 @@ device_ramdisk64() {
device_sshpass alpine

print "* Mount filesystems with this command (for iOS 11 and newer):"
print " mount_filesystems"
print " /usr/bin/mount_filesystems"
print "* Mount filesystems with this command (for iOS 10.3.x):"
print " mount_apfs /dev/disk0s1s1 /mnt1; mount_apfs /dev/disk0s1s2 /mnt2"
print " /sbin/mount_apfs /dev/disk0s1s1 /mnt1; /sbin/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"
print " /sbin/mount_hfs /dev/disk0s1s1 /mnt1; /sbin/mount_hfs /dev/disk0s1s2 /mnt2"
print "* Mounting data (/mnt2) might not work depending on iOS"

menu_ramdisk $build_id
}
Expand Down Expand Up @@ -4920,9 +4921,9 @@ menu_ramdisk() {
fi
print "* When the device boots back up, trigger a restore by entering wrong passwords 10 times."
pause
$ssh -p $ssh_port [email protected] "mount_hfs /dev/disk0s1s1 /mnt1; mount_hfs /dev/disk0s1s2 /mnt2; cp /com.apple.springboard.plist /mnt1/"
$ssh -p $ssh_port [email protected] "/sbin/mount_hfs /dev/disk0s1s1 /mnt1; /sbin/mount_hfs /dev/disk0s1s2 /mnt2; cp /com.apple.springboard.plist /mnt1/"
$ssh -p $ssh_port [email protected] "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 [email protected] "sync; cd /; umount /mnt2; umount /mnt1; sync; reboot"
$ssh -p $ssh_port [email protected] "sync; cd /; /sbin/umount /mnt2; /sbin/umount /mnt1; sync; /sbin/reboot"
log "Done, your device should reboot now"
print "* Proceed to trigger a restore by entering wrong passwords 10 times."
loop=1
Expand Down

0 comments on commit 64cc7dd

Please sign in to comment.