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.
This commit is contained in:
nearxos
2026-02-23 16:15:47 +02:00
parent 2d6e5aa009
commit 25bf710c67
51 changed files with 650 additions and 1192 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Step 10: Kernel command line (swiotlb + DSI rotation)
step_10_cmdline() {
local cmdline="/boot/firmware/cmdline.txt"
[[ -f "$cmdline" ]] || cmdline="/boot/cmdline.txt"
[[ -f "$cmdline" ]] || { log "WARNING: cmdline.txt not found"; return 0; }
if [[ -n "$SWIOTLB_SIZE" ]] && ! grep -q 'swiotlb=' "$cmdline"; then
sed -i "s/rootwait/rootwait swiotlb=$SWIOTLB_SIZE/" "$cmdline"
log "Added swiotlb=$SWIOTLB_SIZE to cmdline"
fi
if [[ -n "$DSI_ROTATE" ]] && ! grep -q 'video=DSI-1:rotate=' "$cmdline"; then
sed -i "s/\$/ video=DSI-1:rotate=$DSI_ROTATE/" "$cmdline"
log "Added video=DSI-1:rotate=$DSI_ROTATE to cmdline"
fi
}