···5252export HOME="/tmp"
53535454# ── Mount USB EFI partition (for config.json, wifi_creds.json, logs) ──
5555-# Retry a few times — USB devices may take a moment to appear
5555+# Load filesystem modules and retry — USB takes time to appear
5656+modprobe vfat 2>/dev/null
5757+modprobe nls_cp437 2>/dev/null
5858+modprobe nls_ascii 2>/dev/null
5659USB_MOUNTED=0
5757-for attempt in 1 2 3 4 5; do
6060+for attempt in 1 2 3 4 5 6 7 8 9 10; do
5861 for p in /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/nvme0n1p1; do
5962 if [ -b "$p" ]; then
6063 mkdir -p /mnt