summaryrefslogtreecommitdiff
path: root/plymouth/debian/local/plymouth.init-premount
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-09-15 01:40:06 +0000
committerB Stack <bgstack15@gmail.com>2019-09-15 01:40:06 +0000
commitf2dff3ec0939afc06060528e453a86f3045a73a9 (patch)
tree37d52e919c9b407b9783b388aa6706ad31a0c931 /plymouth/debian/local/plymouth.init-premount
parentMerge branch 'chicago95-bump' into 'master' (diff)
parentfix maintainer (diff)
downloadstackrpms-f2dff3ec0939afc06060528e453a86f3045a73a9.tar.gz
stackrpms-f2dff3ec0939afc06060528e453a86f3045a73a9.tar.bz2
stackrpms-f2dff3ec0939afc06060528e453a86f3045a73a9.zip
Merge branch 'plymouth-bump' into 'master'
Add plymouth See merge request bgstack15/stackrpms!87
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