2327b6efdb
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
22 lines
486 B
Bash
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..." &
|