From 7bf26d686e5c4588c2cca1f78bfb6d5ab4b9333f Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 11 Sep 2019 14:59:55 -0400 Subject: plymouth 0.9.4 without systemd --- plymouth/debian/local/plymouth.init-premount | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 plymouth/debian/local/plymouth.init-premount (limited to 'plymouth/debian/local/plymouth.init-premount') 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 -- cgit