Files
orangepi-5-plus-kernel/external/packages/plymouth-theme-orangepi/debian/postinst
2026-02-07 20:22:48 +08:00

18 lines
423 B
Bash

#!/bin/sh -e
if [ "x$1" = xconfigure ]; then
if which plymouth-set-default-theme >/dev/null 2>&1; then
# For Debian
plymouth-set-default-theme orangepi
else
# For Ubuntu
update-alternatives \
--install /usr/share/plymouth/themes/default.plymouth default.plymouth \
/usr/share/plymouth/themes/orangepi/orangepi.plymouth 150
fi
if which update-initramfs >/dev/null 2>&1; then
update-initramfs -u
fi
fi