This commit is contained in:
Miguel Fuertes committed 2025-10-07 10:50:27 +02:00
1 parent 2b806bd129
commit 8c4e3b9225
1 file changed
-3
-3
View File
@@ -34,12 +34,10 @@ echo "[*] Detecting OpenWrt images..."
gpt_path=$(find_image "$openwrt_dir" "*-squashfs-gpt_both0.bin") || exit 1
boot_path=$(find_image "$openwrt_dir" "*-squashfs-boot.img") || exit 1
system_path=$(find_image "$openwrt_dir" "*-squashfs-system.img") || exit 1
# rootfs_data_path=$(find_image "$openwrt_dir" "*-rootfs_data.img") || exit 1
echo "[+] GPT: $(basename "$gpt_path")"
echo "[+] Boot: $(basename "$boot_path")"
echo "[+] Rootfs: $(basename "$system_path")"
# echo "[+] Rootfs_data: $(basename "$rootfs_data_path")"
# Detect firmware ZIP and extract .mbn files.
echo
@@ -156,7 +154,6 @@ fastboot flash tz "$firmware_dir/tz.mbn" || { echo "[-] Error flashing tz"
echo "[*] Flashing OpenWrt images..."
fastboot flash boot "$boot_path" || { echo "[-] Error flashing boot"; exit 1; }
fastboot flash rootfs "$system_path" || { echo "[-] Error flashing rootfs"; exit 1; }
# fastboot flash rootfs_data "$rootfs_data_path" || { echo "[-] Error flashing rootfs_data"; exit 1; }
# Reboot back to EDL to restore radio-cal data partitions.
echo "[*] Rebooting to EDL mode..."