View | Details | Raw Unified | Return to bug 48254
Collapse All | Expand All

(-)a/features/plymouth/data/etc/rc.d/init.d/plymouth (-11 / +13 lines)
Lines 15-43 Link Here
15
. /etc/init.d/template
15
. /etc/init.d/template
16
. initrd-sh-functions
16
. initrd-sh-functions
17
17
18
show_splash() {
19
	udevadm settle --timeout=30 --exit-if-exists=/sys/class/drm/card0/dev
20
	udevadm settle --timeout=30 --exit-if-exists=/sys/class/graphics/fb0/dev
21
	plymouth show-splash
22
}
23
24
start() {
18
start() {
25
	[ -z "${NOSPLASH-}" ] ||
19
	[ -z "${NOSPLASH-}" ] ||
26
		return 0
20
		return 0
27
21
28
	local pid=/run/plymouth/pid
22
	udevadm settle --timeout=30 --exit-if-exists=/sys/class/drm/card0/dev
23
	udevadm settle --timeout=30 --exit-if-exists=/sys/class/graphics/fb0/dev
24
25
	local pidfile=/run/plymouth/pid
29
26
30
	mkdir -m 0755 /run/plymouth 2>/dev/null ||:
27
	mkdir -m 0755 /run/plymouth 2>/dev/null ||:
31
	: > /run/systemd/plymouth
28
	: > /run/systemd/plymouth
32
29
33
	start_daemon --lockfile "$LOCKFILE" -- plymouthd --mode=boot --tty=/dev/tty1 --pid-file=$pid ||
30
	start_daemon --lockfile "$LOCKFILE" -- plymouthd --mode=boot --tty=/dev/tty1 --pid-file=$pidfile ||
34
		RETVAL=$?
31
		RETVAL=$?
35
32
36
	[ "$RETVAL" = 0 ] ||
33
	[ "$RETVAL" = 0 ] ||
37
		return $RETVAL
34
		return $RETVAL
38
35
39
	omit_pid "$(cat "$pid")"
36
	pid="$(cat "$pidfile")"
40
	show_splash &
37
38
	while [ -e "/proc/$pid" ] && ! plymouth --ping 2>/dev/null; do
39
		sleep 1
40
	done
41
42
	omit_pid "$pid"
43
	plymouth show-splash
41
}
44
}
42
45
43
stop() {
46
stop() {
44
- 

Return to bug 48254