gemini: splash banner on framebuffer console
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 9 Oct 2021 11:32:09 +0000 (13:32 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Oct 2021 14:44:15 +0000 (16:44 +0200)
The D-Link DIR-685 has a small screen with a framebuffer
console, so if we have this, when we start, display the
banner on this framebuffer console so the user know they
are running OpenWRT as root filesystem.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
target/linux/gemini/base-files/etc/board.d/03_splash [new file with mode: 0644]

diff --git a/target/linux/gemini/base-files/etc/board.d/03_splash b/target/linux/gemini/base-files/etc/board.d/03_splash
new file mode 100644 (file)
index 0000000..0c50ff7
--- /dev/null
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: GPL-2.0-only
+# OpenWRT splash screen if using framebuffer console
+
+if [ ! -d /sys/class/graphics/fbcon ] ; then
+       exit 0
+fi
+
+echo 0 > /sys/class/graphics/fbcon/cursor_blink
+cat /etc/banner > /dev/tty0