mirror of
https://git.yoctoproject.org/poky
synced 2026-02-16 05:33:03 +01:00
psplash-init exits if there is no framebuffer device detected. This is done to avoid the following error message from occurring when booting up: "Error opening /dev/fb0: No such file or directory" (From OE-Core rev: 2348dda6b8a86352e72ef41b24df3a19e8bc98ce) Signed-off-by: Aws Ismail <aws.ismail@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
647 B
Executable File
647 B
Executable File
#!/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 &