]> git.kernelconcepts.de Git - meta-kc-bsp.git/blobdiff - recipes-bsp/dotsplash/files/dotsplash-init
dotsplash: initial recipe
[meta-kc-bsp.git] / recipes-bsp / dotsplash / files / dotsplash-init
diff --git a/recipes-bsp/dotsplash/files/dotsplash-init b/recipes-bsp/dotsplash/files/dotsplash-init
new file mode 100644 (file)
index 0000000..28ec360
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh 
+
+if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
+       echo "Boot splashscreen disabled"
+       exit 0;
+fi
+
+. /etc/init.d/functions
+. /etc/default/dotplash
+
+export TMPDIR=/mnt/.splash
+mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+
+/usr/bin/dotsplash $PARAMS &
+
+# Timetrap against hanging with splash hiding console messages.
+(sleep 120; dotsplash-write "QUIT") &