pmaports/main/postmarketos-bootsplash/99-shutdown-pbsplash.stop
Dylan Van Assche 2327b6efdb
main/postmarketos-bootsplash: allow skip shutdown splash (MR 3970)
deviceinfo allows to disable the framebuffer which automatically
skips the splash on boot. Honor this setting as well for the shutdown
splash. Also honor the PMOS_NOSPLASH cmdline parameter as well.

[ci:skip-build]: already built successfully in CI
2023-04-12 08:59:19 +02:00

22 lines
486 B
Bash

#!/bin/sh
VT=7
# Retrieve device name
source /etc/deviceinfo
# Do not show splash if framebuffer is disabled
if [ "$deviceinfo_no_framebuffer" = "true" ]; then
return;
fi
# Do not show splash if PMOS_SPLASH is set
if grep -q PMOS_NOSPLASH /proc/cmdline; then
return;
fi
# Run on separate VT to avoid interference of display managers
chvt "$VT"
# Run splash
pbsplash -s /usr/share/pbsplash/pmos-logo-text.svg -b "Linux $(uname -r) | $deviceinfo_codename" -m "Shutting down..." &