From 5c9ab08c71883fede481148556efe2c316c58c28 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Sat, 24 Oct 2009 19:40:30 +0200 Subject: [PATCH] Load Lat15-Terminus16 console font if no framebuffer is available. Only load Uni3-Terminus font if framebuffer is present due to restrictions in VGA mode to prevent strange characters in console. Thanks to Thorsten Glaser for his hint. [Closes: issue318] --- autoconfig.functions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autoconfig.functions b/autoconfig.functions index 5519f28..75060f8 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -78,6 +78,11 @@ checkbootparam(){ esac } +# Check if currently using a framebuffer +hasfb() { + [ -e /dev/fb0 ] && return 0 || return 1 +} + # Check wheter a configuration variable (like $CONFIG_TOHD) is # enabled or not checkvalue(){ @@ -236,6 +241,9 @@ config_language(){ else ewarn "/usr/share/consolefonts/Uni3-Terminus16.psf.gz not available. Please upgrade package console-terminus." ; eend 1 fi + if ! hasfb ; then + CONSOLEFONT='Lat15-Terminus16' + fi fi fi -- 2.1.4