Files
nearxos 25bf710c67 Remove deprecated one-shot scripts and update first-boot configuration for improved provisioning</message>
<message>Delete obsolete one-shot scripts for setting screen rotation and wallpaper, as well as related Python and shell scripts. Update the first-boot configuration to streamline the provisioning process by removing references to these scripts. This cleanup enhances maintainability and focuses on the essential steps required for the first boot experience, ensuring a more efficient setup for users.
2026-02-23 16:15:47 +02:00

20 lines
696 B
Bash

#!/bin/bash
# Step 03: Install reTerminal DM drivers (Seeed device-tree overlays)
step_03_reterminal_drivers() {
if [[ -z "$RETERMINAL_REPO_URL" ]]; then
log "Skipping reTerminal drivers (RETERMINAL_REPO_URL not set)"
return 0
fi
local repo="/tmp/seeed-linux-dtoverlays"
log "Cloning seeed-linux-dtoverlays ..."
git clone --depth 1 "$RETERMINAL_REPO_URL" "$repo"
log "Running reTerminal.sh --device $RETERMINAL_DEVICE ..."
if ( cd "$repo" && "$repo/scripts/reTerminal.sh" --device "$RETERMINAL_DEVICE" ); then
log "reTerminal DM drivers installed (reboot will apply)"
else
log "WARNING: reTerminal.sh failed; display/touch may still work"
fi
rm -rf "$repo"
}