mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
init: use terminus 16x32 font on >1080 lines displays
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
316620cdb9
commit
7da4fa4dc9
@ -367,6 +367,18 @@ load_modules() {
|
||||
done
|
||||
}
|
||||
|
||||
set_consolefont() {
|
||||
local vres
|
||||
|
||||
progress "Set console font"
|
||||
if [ -e /dev/fb0 ]; then
|
||||
vres="$(fbset 2>/dev/null | awk '/geometry/ { print $3 }')"
|
||||
if [ $vres -gt 1080 ]; then
|
||||
setfont -C /dev/tty0 ter-v32b.psf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
load_splash() {
|
||||
local set_default_res=no
|
||||
local vres
|
||||
@ -1058,6 +1070,7 @@ debug_msg "Unique identifier for this client: ${MACHINE_UID:-NOT AVAILABLE}"
|
||||
# main boot sequence
|
||||
for BOOT_STEP in \
|
||||
load_modules \
|
||||
set_consolefont \
|
||||
check_disks \
|
||||
mount_flash \
|
||||
update_bootmenu \
|
||||
|
Loading…
x
Reference in New Issue
Block a user