psplash: fix init script to avoid running the app without fb
This is a clone from the original psplash recipe init script
but with the added fix:
@@ -25,5 +25,7 @@
read rotation < /etc/rotation
fi
-/usr/bin/psplash --angle $rotation &
+if [ -c "${FBDEV:-/dev/fb0}" ]; then
+ /usr/bin/psplash --angle $rotation &
+fi
which avoids running the application when there is no framebuffer
in the system. This prevents the following error message during
boot:
Error opening /dev/fb0: No such file or directory
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
https://jira.digi.com/browse/DEL-2747
This commit is contained in:
parent
951f20d36b
commit
034aaa6fb1
|
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/sh
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: psplash
|
||||||
|
# Required-Start:
|
||||||
|
# Required-Stop:
|
||||||
|
# Default-Start: S
|
||||||
|
# Default-Stop:
|
||||||
|
### END INIT INFO
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
if [ -c "${FBDEV:-/dev/fb0}" ]; then
|
||||||
|
/usr/bin/psplash --angle $rotation &
|
||||||
|
fi
|
||||||
|
|
||||||
Loading…
Reference in New Issue