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:
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Step 09: Re-apply Plymouth splash theme after driver install
|
||||
|
||||
step_09_reapply_splash() {
|
||||
local cfg="/boot/firmware/config.txt"
|
||||
[[ -f "$cfg" ]] || cfg="/boot/config.txt"
|
||||
if [[ -f "$cfg" ]] && grep -q '^disable_splash=1' "$cfg"; then
|
||||
sed -i 's/^disable_splash=1$/disable_splash=0/' "$cfg"
|
||||
log "Set disable_splash=0"
|
||||
fi
|
||||
|
||||
if [[ -f /etc/plymouth/plymouthd.conf ]]; then
|
||||
sed -i '/^Theme=/d; /^\[Daemon\]$/d' /etc/plymouth/plymouthd.conf
|
||||
grep -q '^\[Daemon\]' /etc/plymouth/plymouthd.conf || echo '[Daemon]' >> /etc/plymouth/plymouthd.conf
|
||||
echo 'Theme=custom' >> /etc/plymouth/plymouthd.conf
|
||||
fi
|
||||
|
||||
log "Running update-initramfs ..."
|
||||
update-initramfs -u -k all 2>/dev/null || true
|
||||
}
|
||||
Reference in New Issue
Block a user