summaryrefslogtreecommitdiff
path: root/plymouth/debian/local/plymouth.init-premount
diff options
context:
space:
mode:
Diffstat (limited to 'plymouth/debian/local/plymouth.init-premount')
-rw-r--r--plymouth/debian/local/plymouth.init-premount37
1 files changed, 37 insertions, 0 deletions
diff --git a/plymouth/debian/local/plymouth.init-premount b/plymouth/debian/local/plymouth.init-premount
new file mode 100644
index 0000000..e5a7db6
--- /dev/null
+++ b/plymouth/debian/local/plymouth.init-premount
@@ -0,0 +1,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