Баннер BBox как шаблон из репозитория (motd/10-armbian-header.tpl): версия/URL подставляются при установке, обновление при смене версии

This commit is contained in:
NW
2026-08-07 15:20:45 +01:00
parent a0aa7e3be5
commit 7284a8108c
5 changed files with 284 additions and 17 deletions

View File

@@ -84,12 +84,14 @@ fetch_scripts() {
mkdir -p "$WORK_DIR"
local base="$REPO_URL/raw/branch/$BRANCH"
local files=("init_system.sh" "cleanup_system.sh" "install_scripts.sh")
local files=("init_system.sh" "cleanup_system.sh" "install_scripts.sh" "motd/10-armbian-header.tpl")
local ok=1
for f in "${files[@]}"; do
if curl -fsSL "$base/$f" -o "$WORK_DIR/$f"; then
chmod +x "$WORK_DIR/$f"
case "$f" in
*.sh) chmod +x "$WORK_DIR/$f" ;;
esac
log "$f загружен"
else
warn " ✗ не удалось загрузить $f"