diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-10-09 13:32:09 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2021-10-10 16:44:15 +0200 |
commit | 4293fc32b73dc927b7dcc683a20e8e59dea92963 (patch) | |
tree | fe71d883345b7e95704aade908d42e8a7f20338e /target/linux/gemini | |
parent | 7a6a3494450c4e3a41dd8cc8f3cadb525d5e966b (diff) | |
download | upstream-4293fc32b73dc927b7dcc683a20e8e59dea92963.tar.gz upstream-4293fc32b73dc927b7dcc683a20e8e59dea92963.tar.bz2 upstream-4293fc32b73dc927b7dcc683a20e8e59dea92963.zip |
gemini: splash banner on framebuffer console
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>
Diffstat (limited to 'target/linux/gemini')
-rw-r--r-- | target/linux/gemini/base-files/etc/board.d/03_splash | 9 |
1 files changed, 9 insertions, 0 deletions
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 index 0000000000..0c50ff7342 --- /dev/null +++ b/target/linux/gemini/base-files/etc/board.d/03_splash @@ -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 |