Blame 0091-plymouth-plymouth-pretrigger.sh-don-t-exit-0-for-a-s.patch

Harald Hoyer 811c04
From 540eca9d9d651b52c2d3e18a3df7f9e36c23b681 Mon Sep 17 00:00:00 2001
Harald Hoyer 811c04
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 811c04
Date: Mon, 30 Jul 2012 17:07:43 +0200
Harald Hoyer 811c04
Subject: [PATCH] plymouth/plymouth-pretrigger.sh: don't "exit 0" for a
Harald Hoyer 811c04
 sourced script
Harald Hoyer 811c04
Harald Hoyer 811c04
---
Harald Hoyer 811c04
 modules.d/50plymouth/plymouth-pretrigger.sh | 28 ++++++++++++++--------------
Harald Hoyer 811c04
 1 file changed, 14 insertions(+), 14 deletions(-)
Harald Hoyer 811c04
Harald Hoyer 811c04
diff --git a/modules.d/50plymouth/plymouth-pretrigger.sh b/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 811c04
index e536564..17533bb 100755
Harald Hoyer 811c04
--- a/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 811c04
+++ b/modules.d/50plymouth/plymouth-pretrigger.sh
Harald Hoyer 811c04
@@ -2,23 +2,23 @@
Harald Hoyer 811c04
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
Harald Hoyer 811c04
 # ex: ts=8 sw=4 sts=4 et filetype=sh
Harald Hoyer 811c04
 
Harald Hoyer 811c04
-[ -x /bin/plymouthd -a ! -n "$DRACUT_SYSTEMD" ] || exit 0
Harald Hoyer 811c04
-
Harald Hoyer 811c04
-if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -d -n rd_NO_PLYMOUTH; then
Harald Hoyer 811c04
+if [ -x /bin/plymouthd -a ! -n "$DRACUT_SYSTEMD" ]; then
Harald Hoyer 811c04
+    if getargbool 1 plymouth.enable && getargbool 1 rd.plymouth -d -n rd_NO_PLYMOUTH; then
Harald Hoyer 811c04
         # first trigger graphics subsystem
Harald Hoyer 811c04
-    udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
Harald Hoyer 811c04
+        udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
Harald Hoyer 811c04
         # first trigger graphics and tty subsystem
Harald Hoyer 811c04
-    udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
Harald Hoyer 811c04
+        udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
Harald Hoyer 811c04
 
Harald Hoyer 811c04
-    udevadm settle --timeout=30 2>&1 | vinfo
Harald Hoyer 811c04
+        udevadm settle --timeout=30 2>&1 | vinfo
Harald Hoyer 811c04
 
Harald Hoyer 811c04
-    info "Starting plymouth daemon"
Harald Hoyer 811c04
-    mkdir -m 0755 /run/plymouth
Harald Hoyer 811c04
-    read consoledev rest < /sys/class/tty/console/active
Harald Hoyer 811c04
-    consoledev=${consoledev:-tty0}
Harald Hoyer 811c04
-    [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
Harald Hoyer 811c04
-    [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
Harald Hoyer 811c04
-    /bin/plymouth --show-splash 2>&1 | vinfo
Harald Hoyer 811c04
+        info "Starting plymouth daemon"
Harald Hoyer 811c04
+        mkdir -m 0755 /run/plymouth
Harald Hoyer 811c04
+        read consoledev rest < /sys/class/tty/console/active
Harald Hoyer 811c04
+        consoledev=${consoledev:-tty0}
Harald Hoyer 811c04
+        [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
Harald Hoyer 811c04
+        [ -x /bin/plymouthd ] && /bin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
Harald Hoyer 811c04
+        /bin/plymouth --show-splash 2>&1 | vinfo
Harald Hoyer 811c04
         # reset tty after plymouth messed with it
Harald Hoyer 811c04
-    [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
Harald Hoyer 811c04
+        [ -x /lib/udev/console_init -a -e "/dev/$consoledev" ] && /lib/udev/console_init "/dev/$consoledev"
Harald Hoyer 811c04
+    fi
Harald Hoyer 811c04
 fi