feat: initial setup for Meshtastic Heltec V4 node, custom CA HTTPS firmware, backups, and tooling
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
PORT="${1:-/dev/cu.usbmodem1101}"
|
||||
BACKUP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/backups"
|
||||
TIMESTAMP="$(date +%Y%m%d_%H%M%S)"
|
||||
TARGET_FILE="${BACKUP_DIR}/nvs_backup_${TIMESTAMP}.bin"
|
||||
|
||||
ESPTOOL_BIN="$(which esptool || which esptool.py || echo "${HOME}/.local/bin/esptool.py")"
|
||||
|
||||
mkdir -p "$BACKUP_DIR"
|
||||
echo "Backing up NVS partition (0x9000, 0x5000) to $TARGET_FILE..."
|
||||
"$ESPTOOL_BIN" --port "$PORT" read_flash 0x9000 0x5000 "$TARGET_FILE"
|
||||
echo "NVS backup complete: $TARGET_FILE"
|
||||
Reference in New Issue
Block a user