move --restorerootfs higher

This commit is contained in:
Nebula committed 2022-10-08 21:27:29 -04:00
1 parent 99917611cb
commit ceb4b947f5
1 file changed
+8 -11
+8 -11
View File
@@ -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
# ============