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

type warn &>/dev/null || . /lib/dracut-lib.sh

. /etc/openslx

if [ -n "$SLX_EXAM" ]; then
	fbsplash_ppm="/etc/splash.ppm.gz"
	if ! [ -e "$fbsplash_ppm" ]; then
		fbsplash_ppm="/etc/splash.ppm"
		if ! [ -e "$fbsplash_ppm" ]; then
			fbsplash_ppm=
			warn "Splash screen requested, but not found in initramfs..."
		fi
	fi
	if [ -n "$fbsplash_ppm" ]; then
		/bin/busybox fbsplash -b -s "$fbsplash_ppm" &
	fi
fi

: