migrate flash scripts from edl to qdl.js (#544)

This commit is contained in:
Trey Moen
2026-03-08 12:33:55 -07:00
committed by GitHub
parent b14ff7b971
commit 2c80f55f50
6 changed files with 22 additions and 66 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
echo "Checking active slot..."
ACTIVE_SLOT=$(tools/edl getactiveslot | grep "Current active slot:" | awk '{print $NF}')
ACTIVE_SLOT=$(tools/qdl getactiveslot)
if [[ "$ACTIVE_SLOT" != "a" && "$ACTIVE_SLOT" != "b" ]]; then
echo "Invalid active slot: '$ACTIVE_SLOT'"
@@ -14,6 +14,6 @@ fi
echo "Active slot: $ACTIVE_SLOT"
echo "Flashing boot_$ACTIVE_SLOT..."
tools/edl w boot_$ACTIVE_SLOT $DIR/output/boot.img
tools/qdl flash boot_$ACTIVE_SLOT $DIR/output/boot.img
echo "Flashed boot_$ACTIVE_SLOT!"