X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=75060f8a72bae8c05c9c370903d561cad394aa05;hp=5519f2874f79401e7f853829eb6c7a8c8292ec1a;hb=2153d1e36c5834064f9c0b2455e2d601eef1762d;hpb=3d8a45c4fe230225bcd4253e27cdc39a28b5e10c 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