summaryrefslogtreecommitdiff
path: root/plymouth/debian/local/plymouth.init-premount
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-09-11 14:59:55 -0400
committerB Stack <bgstack15@gmail.com>2019-09-11 14:59:55 -0400
commit7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f (patch)
treea5b2fa3712798d6d8fb4fe8062cfc70c90b94b2a /plymouth/debian/local/plymouth.init-premount
parentMerge branch 'waterfox-bump' into 'master' (diff)
downloadstackrpms-7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f.tar.gz
stackrpms-7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f.tar.bz2
stackrpms-7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f.zip
plymouth 0.9.4 without systemd
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