gemini: splash banner on framebuffer console
[openwrt/staging/mkresin.git] / target / linux / gemini / base-files / etc / board.d / 03_splash
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