mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 18:49:48 +02:00
move --restorerootfs higher
This commit is contained in:
1 file changed
+8
-11
+8
-11
@@ -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
|
||||
# ============
|
||||
|
||||
Reference in new issue
Block a user