From 225910258f81e8de0252c08d3252b071865a4226 Mon Sep 17 00:00:00 2001 From: Bit Borealis Date: Tue, 25 Jul 2023 10:42:14 +0000 Subject: [PATCH] initial --- plymouth.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 plymouth.sh diff --git a/plymouth.sh b/plymouth.sh new file mode 100644 index 0000000..f8d8510 --- /dev/null +++ b/plymouth.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +# Preview Plymouth Splash +# by _khAttAm_ +# www.khattam.info +# License: GPL v3 +# source: https://gist.github.com/nextgenthemes/5396198 +# modified by Sébastien Bouchard + +chk_root () { + if [ ! $( id -u ) -eq 0 ]; then + echo; echo; echo; echo; echo "Must be run as root!" + exit + fi +} +chk_root + +DURATION=$1 +if [ $# -ne 1 ]; then + DURATION=10 +fi + +plymouthd; plymouth --show-splash; sleep $DURATION; plymouth quit