From ceb4b947f5e32e2319924162fa5af265939d1433 Mon Sep 17 00:00:00 2001 From: Nebula Date: Sat, 8 Oct 2022 21:27:29 -0400 Subject: [PATCH] move --restorerootfs higher --- palera1n.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/palera1n.sh b/palera1n.sh index 9914b98..5aac778 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -191,6 +191,14 @@ elif [ "$1" = 'dfuhelper' ]; then echo "[*] Running DFU helper" _dfuhelper exit +elif [ "$1" = '--restorerootfs' ]; then + echo "[*] Restoring rootfs..." + "$dir"/irecovery -n + sleep 2 + echo "[*] Done, your device will boot into iOS now." + # clean the boot files bcs we don't need them anymore + rm -rf boot-"$deviceid" work .tweaksinstalled + exit fi # ============ @@ -310,17 +318,6 @@ if [ ! "$1" = '--dfu' ] && [ ! "$1" = '--tweaks' ]; then fi sleep 2 -# if the user specified --restorerootfs, execute irecovery -n -if [ "$1" = '--restorerootfs' ]; then - echo "[*] Restoring rootfs..." - "$dir"/irecovery -n - sleep 2 - echo "[*] Done, your device will boot into iOS now." - # clean the boot files bcs we don't need them anymore - rm -rf boot-"$deviceid" work .tweaksinstalled - exit -fi - # ============ # Ramdisk # ============