#!/usr/bin/env bash
set -euo pipefail
test "$(id -u)" -eq 0 || { echo 'run as root' >&2; exit 1; }
theme=spinner; [ -f /usr/share/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth ] && theme=ubuntu-logo
plymouth-set-default-theme "$theme"; update-initramfs -u -k all; update-grub
echo "Restored Plymouth theme: $theme"
