2023-02-19 17:41:27 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
VT=7
|
|
|
|
|
|
|
|
# Retrieve device name
|
2023-05-29 13:13:32 +00:00
|
|
|
. /usr/share/misc/source_deviceinfo
|
2023-02-19 17:41:27 +00:00
|
|
|
|
2023-03-20 17:39:30 +00:00
|
|
|
# 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
|
|
|
|
|
2023-02-19 17:41:27 +00:00
|
|
|
# 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..." &
|