Controller to not touch osup if possible

This commit is contained in:
2026-04-23 19:05:07 +08:00
parent 9eba55e7ee
commit 4549b9d167
6 changed files with 25 additions and 107 deletions

View File

@@ -2,7 +2,9 @@
set -eu
### User-configurable vars
IMG_DIR="./out"
SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
OUT_DIR="$( realpath "$SCRIPT_DIR"/../out/ )"
IMG_DIR="$OUT_DIR"
CONFIG_PART_SUFFIX="s1" # config partition after flashing
ENV_SEARCH_DIR="./out" # optional; leave empty to use selected image dir