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]
+# 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(){
# Check wheter a configuration variable (like $CONFIG_TOHD) is
# enabled or not
checkvalue(){
else
ewarn "/usr/share/consolefonts/Uni3-Terminus16.psf.gz not available. Please upgrade package console-terminus." ; eend 1
fi
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