summaryrefslogtreecommitdiff
path: root/plymouth/debian/local/plymouth.init-premount
blob: e5a7db6bf84959d6046a61ca5abfa3034cdf9e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

PREREQ="udev"

prereqs()
{
	echo "${PREREQ}"
}

case ${1} in
	prereqs)
		prereqs
		exit 0
		;;
esac

SPLASH="true"

for ARGUMENT in $(cat /proc/cmdline)
do
	case "${ARGUMENT}" in
		splash*)
			SPLASH="true"
			;;

		nosplash*|plymouth.enable=0)
			SPLASH="false"
			;;
	esac
done

if [ "${SPLASH}" = "true" ]
then
	mkdir -m 0755 /run/plymouth
	/sbin/plymouthd --mode=boot --attach-to-session --pid-file=/run/plymouth/pid
	/bin/plymouth --show-splash
fi
bgstack15