From 64cc7dd861390b4f83b27835d61dc331b44ada21 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:31:31 +0800 Subject: [PATCH] Run full paths for erase78 for #468 --- restore.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/restore.sh b/restore.sh index 945a291..bf0308a 100755 --- a/restore.sh +++ b/restore.sh @@ -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 } @@ -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 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 "/sbin/mount_hfs /dev/disk0s1s1 /mnt1; /sbin/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 "sync; cd /; umount /mnt2; umount /mnt1; sync; reboot" + $ssh -p $ssh_port root@127.0.0.1 "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