summaryrefslogtreecommitdiffstats
path: root/builder/modules.d/slx-splash/scripts/slx-splash-exam.sh
blob: b2bf4f530bea1cd4da0aee9fde67195c8392b23b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

. /etc/openslx

if [ -n "$SLX_EXAM" ]; then
	if [ -e "/etc/splash.ppm.gz" ]; then
		systemd-preserve-process-marker /bin/busybox fbsplash -b -s "/etc/splash.ppm.gz" &
	elif [ -e "/etc/splash.ppm" ]; then
		systemd-preserve-process-marker /bin/busybox fbsplash -b -s "/etc/splash.ppm" &
	else
		echo "Splash screen requested, but not found in initramfs..."
	fi
fi

: