summaryrefslogtreecommitdiffstats
path: root/poky/meta/recipes-core/psplash/files/psplash-init
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/recipes-core/psplash/files/psplash-init')
-rwxr-xr-xpoky/meta/recipes-core/psplash/files/psplash-init35
1 files changed, 35 insertions, 0 deletions
diff --git a/poky/meta/recipes-core/psplash/files/psplash-init b/poky/meta/recipes-core/psplash/files/psplash-init
new file mode 100755
index 000000000..0bce1de53
--- /dev/null
+++ b/poky/meta/recipes-core/psplash/files/psplash-init
@@ -0,0 +1,35 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: psplash
+# Required-Start:
+# Required-Stop:
+# Default-Start: S
+# Default-Stop:
+### END INIT INFO
+
+if [ ! -e /dev/fb0 ]; then
+ echo "Framebuffer /dev/fb0 not detected"
+ echo "Boot splashscreen disabled"
+ exit 0;
+fi
+
+read CMDLINE < /proc/cmdline
+for x in $CMDLINE; do
+ case $x in
+ psplash=false)
+ echo "Boot splashscreen disabled"
+ exit 0;
+ ;;
+ esac
+done
+
+export TMPDIR=/mnt/.psplash
+mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+
+rotation=0
+if [ -e /etc/rotation ]; then
+ read rotation < /etc/rotation
+fi
+
+/usr/bin/psplash --angle $rotation &
+
OpenPOWER on IntegriCloud