#!/usr/bin/env bash
set -euo pipefail
test "$(id -u)" -eq 0 || { echo 'run as root' >&2; exit 1; }
test -f /usr/share/plymouth/themes/brz-healthos/brz-healthos.plymouth
update-alternatives --install \
  /usr/share/plymouth/themes/default.plymouth default.plymouth \
  /usr/share/plymouth/themes/brz-healthos/brz-healthos.plymouth 200
update-alternatives --set default.plymouth \
  /usr/share/plymouth/themes/brz-healthos/brz-healthos.plymouth
update-initramfs -u -k all
update-grub
echo 'BRZ HealthOS boot and shutdown branding applied.'
